diff options
author | Devang Patel <dpatel@apple.com> | 2011-10-28 21:12:13 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-10-28 21:12:13 +0000 |
commit | ef8857dfdd4d6b4d139278c52d32e3f2e055c5d7 (patch) | |
tree | f5a94fab4bbb4679dd765fe7e2485262aa2c46bf /test/CodeGenCXX/debug-info-template-limit.cpp | |
parent | bcb54520eb9aaf2c25660380f7301ff3f4d284d5 (diff) |
In case of template specialization, do not try to delay emitting debug info for concrete type in -flimit-debug-info mode. This fixes some of the failures from bs15503.exp tests in gdb testsuite.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143227 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/debug-info-template-limit.cpp')
-rw-r--r-- | test/CodeGenCXX/debug-info-template-limit.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGenCXX/debug-info-template-limit.cpp b/test/CodeGenCXX/debug-info-template-limit.cpp new file mode 100644 index 0000000000..796a80fd62 --- /dev/null +++ b/test/CodeGenCXX/debug-info-template-limit.cpp @@ -0,0 +1,15 @@ +// RUN: %clang -flimit-debug-info -emit-llvm -g -S %s -o - | FileCheck %s + +// Check that this pointer type is TC<int> +// CHECK: !10} ; [ DW_TAG_pointer_type +// CHECK-NEXT: !10 ={{.*}}"TC<int>" + +template<typename T> +class TC { +public: + TC(const TC &) {} + TC() {} +}; + +TC<int> tci; + |