1 // RUN: clang-cc -triple x86_64-apple-darwin -std=c++0x -S %s -o %t-64.s
2 // RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s
3 // RUN: clang-cc -triple i386-apple-darwin -std=c++0x -S %s -o %t-32.s
4 // RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s
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-LP64: call __ZN1SC1Ev
43 // CHECK-LP32: call L__ZN1SC1Ev