initializer-memory.cpp 364 B

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