1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fapple-kext -fno-rtti -emit-llvm -o - %s | FileCheck %s 2// rdar://8825235 3/** 41) 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 9class foo { 10public: 11 foo(); 12 virtual ~foo(); 13}; 14 15foo a; 16foo b; 17foo c; 18foo::~foo() {} 19 20// CHECK-NOT: __TEXT,__StaticInit,regular,pure_instructions 21