f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
29 lines
580 B
C++
29 lines
580 B
C++
// RUN: %clang_cc1 %s -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;
|