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