aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/2005-01-03-StaticInitializers.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-08-20 00:09:39 +0000
committerEric Christopher <echristo@apple.com>2011-08-20 00:09:39 +0000
commit2368b6af4a5f0c07c7b77f8900a956dce75bbf84 (patch)
tree51358875a98676d08ef48b3ef6264e03e48d7471 /test/CodeGenCXX/2005-01-03-StaticInitializers.cpp
parent51abac1f2cbc10cf1bf38727e05ea9716b4c79a3 (diff)
Migrate, FileCheckize and update:
2004-03-08-ReinterpretCastCopy.cpp 2004-03-09-UnmangledBuiltinMethods.cpp 2004-03-15-CleanupsAndGotos.cpp 2004-06-08-LateTemplateInstantiation.cpp 2004-09-27-CompilerCrash.cpp 2004-09-27-DidntEmitTemplate.cpp 2004-11-27-ExceptionCleanupAssertion.cpp 2004-11-27-FriendDefaultArgCrash.cpp 2005-01-03-StaticInitializers.cpp from llvm/test/FrontendC++. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138157 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/2005-01-03-StaticInitializers.cpp')
-rw-r--r--test/CodeGenCXX/2005-01-03-StaticInitializers.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenCXX/2005-01-03-StaticInitializers.cpp b/test/CodeGenCXX/2005-01-03-StaticInitializers.cpp
new file mode 100644
index 0000000000..875c412c6b
--- /dev/null
+++ b/test/CodeGenCXX/2005-01-03-StaticInitializers.cpp
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+
+struct S {
+ int A[2];
+};
+
+// CHECK-NOT: llvm.global_ctor
+int XX = (int)(long)&(((struct S*)0)->A[1]);