diff options
Diffstat (limited to 'clang/test/CodeGenCXX/2005-02-13-BadDynamicInit.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/2005-02-13-BadDynamicInit.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/2005-02-13-BadDynamicInit.cpp b/clang/test/CodeGenCXX/2005-02-13-BadDynamicInit.cpp new file mode 100644 index 0000000..b1db67a --- /dev/null +++ b/clang/test/CodeGenCXX/2005-02-13-BadDynamicInit.cpp @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s +// This testcase corresponds to PR509 +struct Data { + unsigned *data; + unsigned array[1]; +}; + +// CHECK-NOT: llvm.global_ctors +Data shared_null = { shared_null.array }; |