diff options
author | Eric Christopher <echristo@apple.com> | 2012-02-13 15:04:15 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-02-13 15:04:15 +0000 |
commit | d752e3d28035e4276b6f3fb33284252a3d7ff328 (patch) | |
tree | 0b320b29840307e9ba17c8421e0895b3de3c964e /clang/test/CodeGenCXX/debug-info-template-recursive.cpp | |
parent | 8a41bd88d783fa6692bc8aea85bc40d47ae043d0 (diff) | |
download | bcm5719-llvm-d752e3d28035e4276b6f3fb33284252a3d7ff328.tar.gz bcm5719-llvm-d752e3d28035e4276b6f3fb33284252a3d7ff328.zip |
Testcase for previous commit.
PR11970.
llvm-svn: 150389
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-template-recursive.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-template-recursive.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-template-recursive.cpp b/clang/test/CodeGenCXX/debug-info-template-recursive.cpp new file mode 100644 index 00000000000..ef04d03bb78 --- /dev/null +++ b/clang/test/CodeGenCXX/debug-info-template-recursive.cpp @@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s + +class base { }; + +template <class T> class foo : public base { + void operator=(const foo r) { } +}; + +class bar : public foo<void> { }; +bar filters; + +// For now check that it simply doesn't crash. +// CHECK: {{.*}} |