diff options
Diffstat (limited to 'clang/test/CodeGenCXX/global-init-darwin.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/global-init-darwin.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/global-init-darwin.cpp b/clang/test/CodeGenCXX/global-init-darwin.cpp new file mode 100644 index 0000000..20c13c6 --- /dev/null +++ b/clang/test/CodeGenCXX/global-init-darwin.cpp @@ -0,0 +1,23 @@ +// RUN: %clang_cc1 -triple=x86_64-apple-darwin10 -emit-llvm %s -o - |FileCheck %s + +struct A { + A(); + ~A(); +}; + +A a; +A as[2]; + +struct B { + B(); + ~B(); + int f(); +}; + +int i = B().f(); + +// CHECK: "__TEXT,__StaticInit,regular,pure_instructions" { +// CHECK: "__TEXT,__StaticInit,regular,pure_instructions" { +// CHECK: "__TEXT,__StaticInit,regular,pure_instructions" { +// CHECK: "__TEXT,__StaticInit,regular,pure_instructions" { +// CHECK: "__TEXT,__StaticInit,regular,pure_instructions" { |