• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 %s -fno-rtti -debug-info-kind=line-tables-only -S -emit-llvm -o - | FileCheck %s
2 // Checks that clang with "-gline-tables-only" doesn't emit debug info
3 // for variables and types.
4 
5 // CHECK-NOT: DW_TAG_namespace
6 namespace NS {
7 // CHECK-NOT: DW_TAG_class_type
8 // CHECK-NOT: DW_TAG_friend
9 class C { friend class D; };
10 class D {};
11 // CHECK-NOT: DW_TAG_inheritance
12 class E : public C {
13   // CHECK-NOT: DW_TAG_reference type
14   void x(const D& d);
15 };
16 struct F {
17   enum X { };
18   void func(X);
19   virtual ~F();
20 };
~F()21 F::~F() {
22 }
23 }
24 
25 // CHECK-NOT: DW_TAG_variable
26 NS::C c;
27 NS::D d;
28 NS::E e;
29 NS::F f;
30