summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/large-array-init.cpp
blob: ba73428059783d8efbf548ef81fe2f31f8e0c3b6 (plain)
1
2
3
4
5
6
7
8
9
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; }
OpenPOWER on IntegriCloud