Author: rnk
Date: Tue Mar 4 15:33:26 2014
New Revision: 202891
URL: http://llvm.org/viewvc/llvm-project?rev=202891&view=rev
Log:
Add a test case for r202888, which boiled down to -gline-tables-only
clang-cl defaults to -gline-tables-only, because that's the only
CodeView debug info that LLVM knows how to emit.
Modified:
cfe/trunk/test/CodeGenCXX/debug-info-template-explicit-specialization.cpp
Modified:
cfe/trunk/test/CodeGenCXX/debug-info-template-explicit-specialization.cpp
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/debug-info-template-explicit-specialization.cpp?rev=202891&r1=202890&r2=202891&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/debug-info-template-explicit-specialization.cpp
(original)
+++ cfe/trunk/test/CodeGenCXX/debug-info-template-explicit-specialization.cpp
Tue Mar 4 15:33:26 2014
@@ -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 {
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits