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