blob: 1f177460236c47a3120181ed80feb75e69eda085 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin -S %s -o %t-64.s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00002// RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s
Daniel Dunbara5728872009-12-15 20:14:24 +00003// RUN: %clang_cc1 -triple i386-apple-darwin -S %s -o %t-32.s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00004// 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
Sean Callanan3b299012009-12-18 00:04:09 +000021// CHECK-LP64: callq __ZN1SC1Ev
Fariborz Jahanian1d9b5ef2009-08-15 18:55:17 +000022
Mike Stump1eb44332009-09-09 15:08:12 +000023// CHECK-LP32: call L__ZN1SC1Ev