aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/debug-info-gline-tables-only.cpp
blob: b766c73cc22a41f0432a067367278b88f5dc2749 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// RUN: %clang_cc1 %s -fno-rtti -gline-tables-only -S -emit-llvm -o - | FileCheck %s
// Checks that clang with "-gline-tables-only" doesn't emit debug info
// for variables and types.

// CHECK-NOT: DW_TAG_namespace
namespace NS {
// CHECK-NOT: DW_TAG_class_type
// CHECK-NOT: DW_TAG_friend
class C { friend class D; };
class D {};
// CHECK-NOT: DW_TAG_inheritance
class E : public C {
  // CHECK-NOT: DW_TAG_reference type
  void x(const D& d);
};
struct F {
  enum X { };
  void func(X);
  virtual ~F();
};
F::~F() {
}
}

// CHECK-NOT: DW_TAG_variable
NS::C c;
NS::D d;
NS::E e;
NS::F f;