blob: 10a4bec62e90d8a228f7c60d8c73c60734f370a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
//===-- main.cpp ------------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
template <int Arg>
class TestObj
{
public:
int getArg()
{
return Arg;
}
};
int main(int argc, char **argv)
{
TestObj<1> testpos;
TestObj<-1> testneg;
return testpos.getArg() - testneg.getArg(); // Breakpoint 1
}
|