call-arg-zero-temp.cpp revision 48620bafe4ba879f96c2d17caefeb79f3fae2eea
1// 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
7
8extern "C" int printf(...);
9
10struct obj{ int a; float b; double d; };
11
12void foo(obj o) {
13  printf("%d  %f  %f\n", o.a, o.b, o.d);
14}
15
16int main() {
17  obj o = obj();
18  foo(obj());
19}
20
21// CHECK-LP64: call     __Z3foo3obj
22
23// CHECK-LP32: call     __Z3foo3obj
24