blob: 8d2e63d67778393e2f9a9558901be11aed8d5f59 [file] [log] [blame]
Alexey Samsonovfd00eec2012-05-04 07:39:27 +00001// RUN: %clang_cc1 %s -O0 -gline-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
6namespace NS {
7// CHECK-NOT: DW_TAG_class_type
8// CHECK-NOT: DW_TAG_friend
9class C { friend class D; };
10class D {};
11// CHECK-NOT: DW_TAG_inheritance
12class E : public C {
13 // CHECK-NOT: DW_TAG_reference type
14 void x(const D& d);
15};
16}
17
18// CHECK-NOT: DW_TAG_variable
19NS::C c;
20NS::D d;
21NS::E e;