2011-06-12 15:46:16 +00:00
|
|
|
// REQUIRES: x86-registered-target,x86-64-registered-target
|
2011-10-20 21:14:49 +00:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -S %s -o %t-64.s
|
2009-11-18 14:59:57 +00:00
|
|
|
// RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s
|
2011-10-20 21:14:49 +00:00
|
|
|
// RUN: %clang_cc1 -triple i386-apple-darwin -std=c++11 -S %s -o %t-32.s
|
2009-11-18 14:59:57 +00:00
|
|
|
// RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s
|
2009-10-14 18:03:49 +00:00
|
|
|
|
|
|
|
struct A {
|
|
|
|
A(int);
|
|
|
|
};
|
|
|
|
|
|
|
|
struct B {
|
|
|
|
B(A);
|
|
|
|
};
|
|
|
|
|
|
|
|
int main () {
|
|
|
|
(B)10;
|
|
|
|
B(10);
|
|
|
|
static_cast<B>(10);
|
|
|
|
}
|
|
|
|
|
2010-01-01 10:34:51 +00:00
|
|
|
// CHECK-LP64: callq __ZN1AC1Ei
|
|
|
|
// CHECK-LP64: callq __ZN1BC1E1A
|
|
|
|
// CHECK-LP64: callq __ZN1AC1Ei
|
|
|
|
// CHECK-LP64: callq __ZN1BC1E1A
|
|
|
|
// CHECK-LP64: callq __ZN1AC1Ei
|
|
|
|
// CHECK-LP64: callq __ZN1BC1E1A
|
2009-10-14 18:03:49 +00:00
|
|
|
|
2011-02-20 13:06:31 +00:00
|
|
|
// CHECK-LP32: calll L__ZN1AC1Ei
|
|
|
|
// CHECK-LP32: calll L__ZN1BC1E1A
|
|
|
|
// CHECK-LP32: calll L__ZN1AC1Ei
|
|
|
|
// CHECK-LP32: calll L__ZN1BC1E1A
|
|
|
|
// CHECK-LP32: calll L__ZN1AC1Ei
|
|
|
|
// CHECK-LP32: calll L__ZN1BC1E1A
|