Home | History | Annotate | Download | only in CodeGenCXX
      1 // 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
      6 namespace NS {
      7 // CHECK-NOT: DW_TAG_class_type
      8 // CHECK-NOT: DW_TAG_friend
      9 class C { friend class D; };
     10 class D {};
     11 // CHECK-NOT: DW_TAG_inheritance
     12 class 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
     19 NS::C c;
     20 NS::D d;
     21 NS::E e;
     22