diff options
author | Devang Patel <dpatel@apple.com> | 2011-02-22 20:55:26 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-02-22 20:55:26 +0000 |
commit | b6ed369e774b34eebe14a172c4dbc954684001d1 (patch) | |
tree | 49afa7c52832e27a0464c562d4dd95bdabb57fdc /clang/test/CodeGenCXX/debug-info-limit.cpp | |
parent | ba9006df9e64c549855e88c6ab4d19866024d9c6 (diff) | |
download | bcm5719-llvm-b6ed369e774b34eebe14a172c4dbc954684001d1.tar.gz bcm5719-llvm-b6ed369e774b34eebe14a172c4dbc954684001d1.zip |
A constructor call should force class's debug info even if -flimit-debug-info is enabled.
llvm-svn: 126246
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-limit.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-limit.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-limit.cpp b/clang/test/CodeGenCXX/debug-info-limit.cpp new file mode 100644 index 00000000000..75f9271b003 --- /dev/null +++ b/clang/test/CodeGenCXX/debug-info-limit.cpp @@ -0,0 +1,14 @@ +// RUN: %clang -emit-llvm -g -S %s -o - | FileCheck %s + +// TAG_member is used to encode debug info for class constructor. +// CHECK: TAG_member +class A { +public: + int z; +}; + +A *foo () { + A *a = new A(); + return a; +} + |