Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 %s -g -fno-use-cxa-atexit -S -emit-llvm -o - \
      2 // RUN:     | FileCheck %s --check-prefix=CHECK-NOKEXT
      3 // RUN: %clang_cc1 %s -g -fno-use-cxa-atexit -fapple-kext -S -emit-llvm -o - \
      4 // RUN:     | FileCheck %s --check-prefix=CHECK-KEXT
      5 
      6 class A {
      7  public:
      8   A() {}
      9   virtual ~A() {}
     10 };
     11 
     12 A glob;
     13 A array[2];
     14 
     15 void foo() {
     16   static A stat;
     17 }
     18 
     19 // CHECK-NOKEXT: [ DW_TAG_subprogram ] [line 12] [local] [def] [__cxx_global_var_init]
     20 // CHECK-NOKEXT: [ DW_TAG_subprogram ] [line 12] [local] [def] [__dtor_glob]
     21 // CHECK-NOKEXT: [ DW_TAG_subprogram ] [line 13] [local] [def] [__cxx_global_var_init1]
     22 // CHECK-NOKEXT: [ DW_TAG_subprogram ] [line 13] [local] [def] [__cxx_global_array_dtor]
     23 // CHECK-NOKEXT: [ DW_TAG_subprogram ] [line 13] [local] [def] [__dtor_]
     24 // CHECK-NOKEXT: [ DW_TAG_subprogram ] [line 16] [local] [def] [__dtor__ZZ3foovE4stat]
     25 // CHECK-NOKEXT: [ DW_TAG_subprogram ] [line {{.*}}] [local] [def] [_GLOBAL__I_a]
     26 
     27 // CHECK-KEXT: [ DW_TAG_subprogram ] [line {{.*}}] [local] [def] [_GLOBAL__D_a]
     28