2017-05-29 13:38:20 +08:00
|
|
|
// RUN: %clang_cc1 %s -debug-info-kind=limited -triple %itanium_abi_triple -fno-use-cxa-atexit -S -disable-O0-optnone -emit-llvm -o - \
|
2012-10-25 18:18:50 +08:00
|
|
|
// RUN: | FileCheck %s --check-prefix=CHECK-NOKEXT
|
2017-05-29 13:38:20 +08:00
|
|
|
// RUN: %clang_cc1 %s -debug-info-kind=limited -triple %itanium_abi_triple -fno-use-cxa-atexit -fapple-kext -S -disable-O0-optnone -emit-llvm -o - \
|
2012-10-25 18:18:50 +08:00
|
|
|
// RUN: | FileCheck %s --check-prefix=CHECK-KEXT
|
|
|
|
|
|
|
|
class A {
|
|
|
|
public:
|
|
|
|
A() {}
|
|
|
|
virtual ~A() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
A glob;
|
|
|
|
A array[2];
|
|
|
|
|
|
|
|
void foo() {
|
|
|
|
static A stat;
|
|
|
|
}
|
|
|
|
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK-NOKEXT: !DISubprogram(name: "__cxx_global_var_init",{{.*}} line: 12,{{.*}} isLocal: true, isDefinition: true
|
|
|
|
// CHECK-NOKEXT: !DISubprogram(name: "__dtor_glob",{{.*}} line: 12,{{.*}} isLocal: true, isDefinition: true
|
2015-05-13 00:48:43 +08:00
|
|
|
// CHECK-NOKEXT: !DISubprogram(name: "__cxx_global_var_init.1",{{.*}} line: 13,{{.*}} isLocal: true, isDefinition: true
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK-NOKEXT: !DISubprogram(name: "__cxx_global_array_dtor",{{.*}} line: 13,{{.*}} isLocal: true, isDefinition: true
|
|
|
|
// CHECK-NOKEXT: !DISubprogram(name: "__dtor_array",{{.*}} line: 13,{{.*}} isLocal: true, isDefinition: true
|
|
|
|
// CHECK-NOKEXT: !DISubprogram(name: "__dtor__ZZ3foovE4stat",{{.*}} line: 16,{{.*}} isLocal: true, isDefinition: true
|
|
|
|
// CHECK-NOKEXT: !DISubprogram({{.*}} isLocal: true, isDefinition: true
|
2012-10-25 18:18:50 +08:00
|
|
|
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK-KEXT: !DISubprogram({{.*}} isLocal: true, isDefinition: true
|