xref: /minix3/external/bsd/llvm/dist/clang/test/Index/initializer-memory.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: c-index-test -test-load-source-memory-usage none %s 2>&1 | FileCheck %s
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc // rdar://9275920 - We would create millions of Exprs to fill out the initializer.
4*f4a2713aSLionel Sambuc 
5*f4a2713aSLionel Sambuc double data[1000000] = {0};
6*f4a2713aSLionel Sambuc double data_empty_init[1000000] = {};
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc struct S {
9*f4a2713aSLionel Sambuc  S(int);
10*f4a2713aSLionel Sambuc  S();
11*f4a2713aSLionel Sambuc };
12*f4a2713aSLionel Sambuc 
13*f4a2713aSLionel Sambuc S data2[1000000] = {0};
14*f4a2713aSLionel Sambuc S data_empty_init2[1000000] = {};
15*f4a2713aSLionel Sambuc 
16*f4a2713aSLionel Sambuc // CHECK: TOTAL = {{.*}} (0.{{.*}} MBytes)
17