summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/debug-info-gline-tables-only2.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/debug-info-gline-tables-only2.c')
-rw-r--r--test/CodeGen/debug-info-gline-tables-only2.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/debug-info-gline-tables-only2.c b/test/CodeGen/debug-info-gline-tables-only2.c
new file mode 100644
index 0000000..8e9cc64
--- /dev/null
+++ b/test/CodeGen/debug-info-gline-tables-only2.c
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 %s -gline-tables-only -S -emit-llvm -o - | FileCheck %s
+// Checks that clang with "-gline-tables-only" emits metadata for
+// compile unit, subprogram and file.
+
+int main() {
+ // CHECK: ret i32 0, !dbg
+ return 0;
+}
+
+// CHECK: !llvm.dbg.cu = !{!0}
+// CHECK: DW_TAG_compile_unit
+// CHECK: {{.*main.* DW_TAG_subprogram}}
+// CHECK: DW_TAG_file_type
OpenPOWER on IntegriCloud