diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2011-05-02 19:39:53 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2011-05-02 19:39:53 +0000 |
commit | 01af97d3b23bded2b2b21af19bbc6e4cce49e5b3 (patch) | |
tree | 64a10f4c4154739d4a8191d7e1b52ce497f4ebd6 /test/Index/initializer-memory.cpp | |
parent | c3b054d250cdca485c71845089c316e10610ebad (diff) |
Notes
Diffstat (limited to 'test/Index/initializer-memory.cpp')
-rw-r--r-- | test/Index/initializer-memory.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Index/initializer-memory.cpp b/test/Index/initializer-memory.cpp new file mode 100644 index 0000000000000..f085c3562438b --- /dev/null +++ b/test/Index/initializer-memory.cpp @@ -0,0 +1,16 @@ +// 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) |