Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fapple-kext -fno-rtti -emit-llvm -o - %s | FileCheck %s
      2 // rdar://8825235
      3 /**
      4 1) Normally, global object construction code ends up in __StaticInit segment of text section
      5    .section __TEXT,__StaticInit,regular,pure_instructions
      6    In kext mode, they end up in the __text segment.
      7 */
      8 
      9 class foo {
     10 public:
     11   foo();
     12   virtual ~foo();
     13 };
     14 
     15 foo a;
     16 foo b;
     17 foo c;
     18 foo::~foo() {}
     19 
     20 // CHECK-NOT: __TEXT,__StaticInit,regular,pure_instructions
     21