1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -emit-llvm %s -o - | \
3 // RUN: %clang_cc1 -triple i386-apple-darwin -std=c++11 -emit-llvm %s -o - | \
6 extern "C" int printf(...);
12 S() : iS(i++), f1(vf++) {printf("S::S()\n");}
13 ~S(){printf("S::~S(iS = %d f1 = %f)\n", iS, f1); }
22 for (int i = 0; i < 3; i++)
23 printf("ARR_S[%d].iS = %d ARR_S[%d].f1 = %f\n", i, ARR_S[i].iS, i, ARR_S[i].f1);
25 for (int i = 0; i < 2; i++)
26 for (int j = 0; j < 3; j++)
27 for (int k = 0; k < 4; k++)
28 printf("MULTI_ARR[%d][%d][%d].iS = %d MULTI_ARR[%d][%d][%d].f1 = %f\n",
29 i,j,k, MULTI_ARR[i][j][k].iS, i,j,k, MULTI_ARR[i][j][k].f1);
41 // CHECK: call void @_ZN1SC1Ev