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
-// 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 {