OSDN Git Service

new testcase for PR509
authorChris Lattner <sabre@nondot.org>
Mon, 14 Feb 2005 02:54:41 +0000 (02:54 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 14 Feb 2005 02:54:41 +0000 (02:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20171 91177308-0d34-0410-b5e6-96231b3b80d8

test/C++Frontend/2005-02-13-BadDynamicInit.cpp [new file with mode: 0644]

diff --git a/test/C++Frontend/2005-02-13-BadDynamicInit.cpp b/test/C++Frontend/2005-02-13-BadDynamicInit.cpp
new file mode 100644 (file)
index 0000000..84fa565
--- /dev/null
@@ -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 };
+