Don't waste memory if the initializer expression is empty.
llvm-svn: 130420
diff --git a/clang/test/Index/initializer-memory.cpp b/clang/test/Index/initializer-memory.cpp
index d0f531f..f085c35 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 @@
};
S data2[1000000] = {0};
+S data_empty_init2[1000000] = {};
// CHECK: TOTAL = {{.*}} (0.{{.*}} MBytes)