diff options
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/template/main.cpp')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lang/cpp/template/main.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lang/cpp/template/main.cpp b/lldb/packages/Python/lldbsuite/test/lang/cpp/template/main.cpp new file mode 100644 index 00000000000..10a4bec62e9 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/lang/cpp/template/main.cpp @@ -0,0 +1,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 +} |