1 // REQUIRES: x86-registered-target,x86-64-registered-target 2 // RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -S %s -o %t-64.s 3 // RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s 4 // RUN: %clang_cc1 -triple i386-apple-darwin -std=c++11 -S %s -o %t-32.s 5 // RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s 6 7 struct A { A(const A&, int i1 = 1); }; 8 9 struct B : A { }; 10 11 A f(const B &b) { 12 return b; 13 } 14 15 // CHECK-LP64: callq __ZN1AC1ERKS_i 16 17 // CHECK-LP32: calll L__ZN1AC1ERKS_i 18 19 20