2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 %s -fno-rtti -debug-info-kind=line-tables-only -S -emit-llvm -o - | FileCheck %s
|
2018-08-31 21:56:14 +08:00
|
|
|
// RUN: %clang_cc1 %s -fno-rtti -debug-info-kind=line-directives-only -S -emit-llvm -o - | FileCheck %s
|
|
|
|
// Checks that clang with "-gline-tables-only" or "-gline-directives-only" doesn't emit debug info
|
2012-05-04 15:39:27 +08:00
|
|
|
// 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);
|
|
|
|
};
|
2013-08-20 09:28:15 +08:00
|
|
|
struct F {
|
|
|
|
enum X { };
|
|
|
|
void func(X);
|
|
|
|
virtual ~F();
|
|
|
|
};
|
|
|
|
F::~F() {
|
|
|
|
}
|
2012-05-04 15:39:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// CHECK-NOT: DW_TAG_variable
|
|
|
|
NS::C c;
|
|
|
|
NS::D d;
|
|
|
|
NS::E e;
|
2013-08-20 09:28:15 +08:00
|
|
|
NS::F f;
|