diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-04-28 18:53:55 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-04-28 18:53:55 +0000 |
commit | fddbcfbec48f3e077baf5b925729001c4c222c4a (patch) | |
tree | ed83a6e7023c82def1e302d698efe8c1713fc561 /clang/test/Index/initializer-memory.cpp | |
parent | 33d87d97f639a5306ffd6abfa8d556159bea208e (diff) | |
download | bcm5719-llvm-fddbcfbec48f3e077baf5b925729001c4c222c4a.tar.gz bcm5719-llvm-fddbcfbec48f3e077baf5b925729001c4c222c4a.zip |
Don't waste memory if the initializer expression is empty.
llvm-svn: 130420
Diffstat (limited to 'clang/test/Index/initializer-memory.cpp')
-rw-r--r-- | clang/test/Index/initializer-memory.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Index/initializer-memory.cpp b/clang/test/Index/initializer-memory.cpp index d0f531fdd2f..f085c356243 100644 --- a/clang/test/Index/initializer-memory.cpp +++ b/clang/test/Index/initializer-memory.cpp @@ -3,6 +3,7 @@ // 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); @@ -10,5 +11,6 @@ struct S { }; S data2[1000000] = {0}; +S data_empty_init2[1000000] = {}; // CHECK: TOTAL = {{.*}} (0.{{.*}} MBytes) |