xref: /llvm-project/clang/test/SemaCXX/large-array-init.cpp (revision 3f1d6de4f742e03710d6136964af439f9cfde304)
1 // RUN: %clang_cc1 -S -o %t.ll -mllvm -debug-only=exprconstant %s 2>&1 | \
2 // RUN:     FileCheck %s
3 // REQUIRES: asserts
4 
5 struct S { int i; };
6 
7 static struct S arr[100000000] = {{ 0 }};
8 // CHECK: The number of elements to initialize: 1.
9 
foo()10 struct S *foo() { return arr; }
11