PR5050-constructor-conversion.cpp revision 3b29901b1d106789e04ce8c4cdfebe72b251db4b
1// RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++0x -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 -std=c++0x -S %s -o %t-32.s 4// RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s 5 6struct A { A(const A&, int i1 = 1); }; 7 8struct B : A { }; 9 10A f(const B &b) { 11 return b; 12} 13 14// CHECK-LP64: callq __ZN1AC1ERKS_i 15 16// CHECK-LP32: call L__ZN1AC1ERKS_i 17 18 19