[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2005-02-13-BadDynamicInit.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 13 18:54:53 PST 2005
Changes in directory llvm/test/Regression/C++Frontend:
2005-02-13-BadDynamicInit.cpp added (r1.1)
---
Log message:
new testcase for PR509: http://llvm.cs.uiuc.edu/PR509
---
Diffs of the changes: (+9 -0)
2005-02-13-BadDynamicInit.cpp | 9 +++++++++
1 files changed, 9 insertions(+)
Index: llvm/test/Regression/C++Frontend/2005-02-13-BadDynamicInit.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/2005-02-13-BadDynamicInit.cpp:1.1
*** /dev/null Sun Feb 13 20:54:51 2005
--- llvm/test/Regression/C++Frontend/2005-02-13-BadDynamicInit.cpp Sun Feb 13 20:54:41 2005
***************
*** 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 };
+
More information about the llvm-commits
mailing list