blob: d972d63d3cbcb3786bf7bf36cb029d68b2543453 [file] [log] [blame]
Daniel Dunbar4fcfde42009-11-08 01:45:36 +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
Fariborz Jahanian1d9b5ef2009-08-15 18:55:17 +00005
6extern "C" int printf(...);
7
8struct S {
9 S() { printf("S::S()\n"); }
10 int iS;
11};
12
13struct M {
14 S ARR_S;
15};
16
17int main() {
18 M m1;
19}
20
Mike Stump1eb44332009-09-09 15:08:12 +000021// CHECK-LP64: call __ZN1SC1Ev
Fariborz Jahanian1d9b5ef2009-08-15 18:55:17 +000022
Mike Stump1eb44332009-09-09 15:08:12 +000023// CHECK-LP32: call L__ZN1SC1Ev