diff options
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 0000000..bca887b --- /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* x) { + A *a = new A(*x); + return a; +} + |