llvm-for-llvmta/tools/clang/test/SemaCXX/large-array-init.cpp
Nils Hölscher 7f403f4f1e added clang
2022-04-25 13:02:35 +02:00

11 lines
270 B
C++

// 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; }