2013-12-14 06:43:52 +08:00
|
|
|
// RUN: %clang_cc1 %s -g -cxx-abi itanium -fno-use-cxa-atexit -S -emit-llvm -o - \
|
2012-10-25 18:18:50 +08:00
|
|
|
// RUN: | FileCheck %s --check-prefix=CHECK-NOKEXT
|
2013-12-14 06:43:52 +08:00
|
|
|
// RUN: %clang_cc1 %s -g -cxx-abi itanium -fno-use-cxa-atexit -fapple-kext -S -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;
|
|
|
|
}
|
|
|
|
|
|
|
|
// CHECK-NOKEXT: [ DW_TAG_subprogram ] [line 12] [local] [def] [__cxx_global_var_init]
|
|
|
|
// CHECK-NOKEXT: [ DW_TAG_subprogram ] [line 12] [local] [def] [__dtor_glob]
|
|
|
|
// CHECK-NOKEXT: [ DW_TAG_subprogram ] [line 13] [local] [def] [__cxx_global_var_init1]
|
|
|
|
// CHECK-NOKEXT: [ DW_TAG_subprogram ] [line 13] [local] [def] [__cxx_global_array_dtor]
|
2013-09-11 04:14:30 +08:00
|
|
|
// CHECK-NOKEXT: [ DW_TAG_subprogram ] [line 13] [local] [def] [__dtor_array]
|
2012-10-25 18:18:50 +08:00
|
|
|
// CHECK-NOKEXT: [ DW_TAG_subprogram ] [line 16] [local] [def] [__dtor__ZZ3foovE4stat]
|
2013-08-28 07:57:18 +08:00
|
|
|
// CHECK-NOKEXT: [ DW_TAG_subprogram ] [line {{.*}}] [local] [def]{{$}}
|
2012-10-25 18:18:50 +08:00
|
|
|
|
2013-08-28 07:57:18 +08:00
|
|
|
// CHECK-KEXT: [ DW_TAG_subprogram ] [line {{.*}}] [local] [def]{{$}}
|