1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -emit-llvm %s -o - | \ 2*0a6a1f1dSLionel Sambuc // RUN: FileCheck %s 3*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple i386-apple-darwin -std=c++11 -emit-llvm %s -o - | \ 4*0a6a1f1dSLionel Sambuc // RUN: FileCheck %s 5f4a2713aSLionel Sambuc 6f4a2713aSLionel Sambuc struct A { A(const A&, int i1 = 1); }; 7f4a2713aSLionel Sambuc 8f4a2713aSLionel Sambuc struct B : A { }; 9f4a2713aSLionel Sambuc f(const B & b)10f4a2713aSLionel SambucA f(const B &b) { 11f4a2713aSLionel Sambuc return b; 12f4a2713aSLionel Sambuc } 13f4a2713aSLionel Sambuc 14*0a6a1f1dSLionel Sambuc // CHECK: call void @_ZN1AC1ERKS_i 15