aboutsummaryrefslogtreecommitdiff
path: root/test/FrontendC++/2005-02-13-BadDynamicInit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC++/2005-02-13-BadDynamicInit.cpp')
-rw-r--r--test/FrontendC++/2005-02-13-BadDynamicInit.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/FrontendC++/2005-02-13-BadDynamicInit.cpp b/test/FrontendC++/2005-02-13-BadDynamicInit.cpp
new file mode 100644
index 0000000000..84fa565f24
--- /dev/null
+++ b/test/FrontendC++/2005-02-13-BadDynamicInit.cpp
@@ -0,0 +1,9 @@
+// RUN: %llvmgxx %s -S -o - | not grep llvm.global_ctors
+// This testcase corresponds to PR509
+struct Data {
+ unsigned *data;
+ unsigned array[1];
+};
+
+Data shared_null = { shared_null.array };
+