[ubsan] Change ubsan-unique-traps to use nomerge instead of counter (#117651)
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-gline-tables-only.cpp
blob9b86a49d69f5b824561ffae02419917394c71e37
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.
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);
17 struct F {
18 enum X { };
19 void func(X);
20 virtual ~F();
22 F::~F() {
26 // CHECK-NOT: DW_TAG_variable
27 NS::C c;
28 NS::D d;
29 NS::E e;
30 NS::F f;