2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++0x -S %s -o %t-64.s
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s
|
2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -triple i386-apple-darwin -std=c++0x -S %s -o %t-32.s
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %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;
|
|
|
|
}
|
|
|
|
|
2009-12-18 08:04:09 +08:00
|
|
|
// CHECK-LP64: callq __ZN1AC1ERKS_i
|
2009-09-26 02:11:25 +08:00
|
|
|
|
2010-09-22 14:09:31 +08:00
|
|
|
// CHECK-LP32: calll L__ZN1AC1ERKS_i
|
2009-09-26 02:11:25 +08:00
|
|
|
|
|
|
|
|