20 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fapple-kext -fno-rtti -disable-O0-optnone -emit-llvm -o - %s | FileCheck %s2/**31) Normally, global object construction code ends up in __StaticInit segment of text section4 .section __TEXT,__StaticInit,regular,pure_instructions5 In kext mode, they end up in the __text segment.6*/7 8class foo {9public:10 foo();11 virtual ~foo();12};13 14foo a;15foo b;16foo c;17foo::~foo() {}18 19// CHECK-NOT: __TEXT,__StaticInit,regular,pure_instructions20