call-arg-zero-temp.cpp revision 4fcfde4d5c8f25e40720972a5543d538a0dcb220
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