call-arg-zero-temp.cpp revision 398e6b90f5e161d520a95cbf34c732a55fd3e476
1// RUN: %clang_cc1 -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_cc1 -triple i386-apple-darwin -S %s -o %t-32.s 4// RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s 5 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: callq __Z3foo3obj 21 22// CHECK-LP32: calll __Z3foo3obj 23