summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/debug-info-gline-tables-only.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2013-12-22 00:07:40 +0000
committerDimitry Andric <dim@FreeBSD.org>2013-12-22 00:07:40 +0000
commitbfef399519ca9b8a4b4c6b563253bad7e0eeffe0 (patch)
treedf8df0b0067b381eab470a3b8f28d14a552a6340 /test/CodeGenCXX/debug-info-gline-tables-only.cpp
parent6a0372513edbc473b538d2f724efac50405d6fef (diff)
Notes
Diffstat (limited to 'test/CodeGenCXX/debug-info-gline-tables-only.cpp')
-rw-r--r--test/CodeGenCXX/debug-info-gline-tables-only.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/CodeGenCXX/debug-info-gline-tables-only.cpp b/test/CodeGenCXX/debug-info-gline-tables-only.cpp
index 8d2e63d67778..7ecdeb2ec22e 100644
--- a/test/CodeGenCXX/debug-info-gline-tables-only.cpp
+++ b/test/CodeGenCXX/debug-info-gline-tables-only.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -O0 -gline-tables-only -S -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -gline-tables-only -S -emit-llvm -o - | FileCheck %s
// Checks that clang with "-gline-tables-only" doesn't emit debug info
// for variables and types.
@@ -13,9 +13,17 @@ class E : public C {
// CHECK-NOT: DW_TAG_reference type
void x(const D& d);
};
+struct F {
+ enum X { };
+ void func(X);
+ virtual ~F();
+};
+F::~F() {
+}
}
// CHECK-NOT: DW_TAG_variable
NS::C c;
NS::D d;
NS::E e;
+NS::F f;