blob: e066927ad7026ba789e56ac300210e8ef1473cab [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 Jahanian48620ba2009-10-20 23:29:04 +00005
6
7extern "C" int printf(...);
8
9struct obj{ int a; float b; double d; };
10
11void foo(obj o) {
12 printf("%d %f %f\n", o.a, o.b, o.d);
13}
14
15int main() {
16 obj o = obj();
17 foo(obj());
18}
19
20// CHECK-LP64: call __Z3foo3obj
21
22// CHECK-LP32: call __Z3foo3obj