llvm-for-llvmta/tools/clang/test/SemaCXX/large-array-init.cpp

11 lines
270 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// 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; }