blob: 2d04bc94142714fba55b94c0f70024a1e8bcd019 [file] [log] [blame]
Fariborz Jahanian1d9b5ef2009-08-15 18:55:17 +00001// RUN: clang-cc -triple x86_64-apple-darwin -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 -S %s -o %t-32.s &&
4// RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s &&
5// RUN: true
6
7extern "C" int printf(...);
8
9struct S {
10 S() { printf("S::S()\n"); }
11 int iS;
12};
13
14struct M {
15 S ARR_S;
16};
17
18int main() {
19 M m1;
20}
21
Mike Stump1eb44332009-09-09 15:08:12 +000022// CHECK-LP64: call __ZN1SC1Ev
Fariborz Jahanian1d9b5ef2009-08-15 18:55:17 +000023
Mike Stump1eb44332009-09-09 15:08:12 +000024// CHECK-LP32: call L__ZN1SC1Ev