From 305ff0ec1026eec8e5b5a3d8b1753b4d22b67519 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Tue, 4 Mar 2014 21:33:26 +0000 Subject: [PATCH] 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 --- .../debug-info-template-explicit-specialization.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 struct a { -- 2.40.0