diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-03-04 21:33:26 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-03-04 21:33:26 +0000 |
commit | 305ff0ec1026eec8e5b5a3d8b1753b4d22b67519 (patch) | |
tree | 184f963e9c584099e9a7d9591b7f64a2edbaae34 /test/CodeGenCXX/debug-info-template-explicit-specialization.cpp | |
parent | da44725a134d61c22e8eb29bd409c73496fd524e (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/debug-info-template-explicit-specialization.cpp')
-rw-r--r-- | test/CodeGenCXX/debug-info-template-explicit-specialization.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/CodeGenCXX/debug-info-template-explicit-specialization.cpp b/test/CodeGenCXX/debug-info-template-explicit-specialization.cpp index c7629df93d..9012ad6bcb 100644 --- a/test/CodeGenCXX/debug-info-template-explicit-specialization.cpp +++ b/test/CodeGenCXX/debug-info-template-explicit-specialization.cpp @@ -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 { |