]> granicus.if.org Git - clang/commitdiff
Add a test case for r202888, which boiled down to -gline-tables-only
authorReid Kleckner <reid@kleckner.net>
Tue, 4 Mar 2014 21:33:26 +0000 (21:33 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 4 Mar 2014 21:33:26 +0000 (21:33 +0000)
clang-cl defaults to -gline-tables-only, because that's the only
CodeView debug info that LLVM knows how to emit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202891 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/debug-info-template-explicit-specialization.cpp

index c7629df93d178b084fd5677e13838340cd8dd99c..9012ad6bcb2174a1f626ec162c12b6930f4f8635 100644 (file)
@@ -1,4 +1,10 @@
-// RUN: %clang_cc1 -S -emit-llvm -triple %itanium_abi_triple -g %s -o - -fno-standalone-debug | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -g %s -o - -fno-standalone-debug | FileCheck %s
+
+// Run again with -gline-tables-only and verify we don't crash.  We won't output
+// type info at all.
+// RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -g %s -o - -gline-tables-only | FileCheck %s -check-prefix LINES-ONLY
+
+// LINES-ONLY-NOT: DW_TAG_structure_type
 
 template <typename T>
 struct a {