xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/global-init-darwin.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple=x86_64-apple-darwin10 -emit-llvm %s -o - |FileCheck %s
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc struct A {
4*f4a2713aSLionel Sambuc   A();
5*f4a2713aSLionel Sambuc   ~A();
6*f4a2713aSLionel Sambuc };
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc A a;
9*f4a2713aSLionel Sambuc A as[2];
10*f4a2713aSLionel Sambuc 
11*f4a2713aSLionel Sambuc struct B {
12*f4a2713aSLionel Sambuc   B();
13*f4a2713aSLionel Sambuc   ~B();
14*f4a2713aSLionel Sambuc   int f();
15*f4a2713aSLionel Sambuc };
16*f4a2713aSLionel Sambuc 
17*f4a2713aSLionel Sambuc int i = B().f();
18*f4a2713aSLionel Sambuc 
19*f4a2713aSLionel Sambuc // CHECK: "__TEXT,__StaticInit,regular,pure_instructions" {
20*f4a2713aSLionel Sambuc // CHECK: "__TEXT,__StaticInit,regular,pure_instructions" {
21*f4a2713aSLionel Sambuc // CHECK: "__TEXT,__StaticInit,regular,pure_instructions" {
22*f4a2713aSLionel Sambuc // CHECK: "__TEXT,__StaticInit,regular,pure_instructions" {
23*f4a2713aSLionel Sambuc // CHECK: "__TEXT,__StaticInit,regular,pure_instructions" {
24