2013-12-03 21:57:25 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -emit-llvm %s -o - | \
|
|
|
|
// RUN: FileCheck %s
|
|
|
|
// RUN: %clang_cc1 -triple i386-apple-darwin -std=c++11 -emit-llvm %s -o - | \
|
|
|
|
// RUN: FileCheck %s
|
2009-09-26 02:11:25 +08:00
|
|
|
|
2009-09-26 02:59:21 +08:00
|
|
|
struct A { A(const A&, int i1 = 1); };
|
2009-09-26 02:11:25 +08:00
|
|
|
|
|
|
|
struct B : A { };
|
|
|
|
|
|
|
|
A f(const B &b) {
|
|
|
|
return b;
|
|
|
|
}
|
|
|
|
|
2013-12-03 21:57:25 +08:00
|
|
|
// CHECK: call void @_ZN1AC1ERKS_i
|