diff options
Diffstat (limited to 'test/SemaCXX/large-array-init.cpp')
-rw-r--r-- | test/SemaCXX/large-array-init.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/SemaCXX/large-array-init.cpp b/test/SemaCXX/large-array-init.cpp new file mode 100644 index 0000000000000..ba73428059783 --- /dev/null +++ b/test/SemaCXX/large-array-init.cpp @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -S -o %t.ll -mllvm -debug-only=exprconstant %s 2>&1 | \ +// RUN: FileCheck %s +// REQUIRES: asserts + +struct S { int i; }; + +static struct S arr[100000000] = {{ 0 }}; +// CHECK: The number of elements to initialize: 1. + +struct S *foo() { return arr; } |