diff options
author | Chris Lattner <sabre@nondot.org> | 2005-02-14 02:54:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-02-14 02:54:41 +0000 |
commit | d2beaa63b3515082b73ebb285938f2f8d335eb7c (patch) | |
tree | ca6bcde41202270ac7fd3a0ccf27a6821ca38abc | |
parent | 550c57cb30059aaacba562c14d5824be76b8c4a2 (diff) |
new testcase for PR509
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20171 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/C++Frontend/2005-02-13-BadDynamicInit.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/C++Frontend/2005-02-13-BadDynamicInit.cpp b/test/C++Frontend/2005-02-13-BadDynamicInit.cpp new file mode 100644 index 0000000000..84fa565f24 --- /dev/null +++ b/test/C++Frontend/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 }; + |