YouCompleteMe/cpp/llvm/tools/clang/test/Index/initializer-memory.cpp
Strahinja Val Markovic 1f51a89d39 Adding more llvm/clang files
These were ignored by git accidentally. We want ALL OF THEM since they all came
in the llvm/clang source distribution.
2012-07-05 17:55:45 -07:00

17 lines
364 B
C++

// RUN: c-index-test -test-load-source-memory-usage none %s 2>&1 | FileCheck %s
// rdar://9275920 - We would create millions of Exprs to fill out the initializer.
double data[1000000] = {0};
double data_empty_init[1000000] = {};
struct S {
S(int);
S();
};
S data2[1000000] = {0};
S data_empty_init2[1000000] = {};
// CHECK: TOTAL = {{.*}} (0.{{.*}} MBytes)