Debian Codegraph @

clang/test/DebugInfo/CXX/gline-tables-only.cpp

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