summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/debug-info-limit.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2011-02-26 22:09:03 +0000
committerDimitry Andric <dim@FreeBSD.org>2011-02-26 22:09:03 +0000
commitc3b054d250cdca485c71845089c316e10610ebad (patch)
treeabae0246ec9156cc1a7cbb947b2b0dfe95fa3189 /test/CodeGenCXX/debug-info-limit.cpp
parentbca07a4524feb4edec581062d631a13116320a24 (diff)
Diffstat (limited to 'test/CodeGenCXX/debug-info-limit.cpp')
-rw-r--r--test/CodeGenCXX/debug-info-limit.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGenCXX/debug-info-limit.cpp b/test/CodeGenCXX/debug-info-limit.cpp
new file mode 100644
index 0000000000000..75f9271b003fb
--- /dev/null
+++ b/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;
+}
+