2013-12-03 22:16:22 +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-10-02 04:39:51 +08:00
|
|
|
|
|
|
|
struct A {
|
|
|
|
A(int);
|
|
|
|
};
|
|
|
|
|
|
|
|
struct B {
|
|
|
|
B(A);
|
|
|
|
};
|
|
|
|
|
|
|
|
int main () {
|
|
|
|
(B)10;
|
|
|
|
B(10);
|
|
|
|
static_cast<B>(10);
|
|
|
|
}
|
|
|
|
|
2013-12-03 22:16:22 +08:00
|
|
|
// CHECK: call void @_ZN1AC1Ei
|
|
|
|
// CHECK: call void @_ZN1BC1E1A
|
|
|
|
// CHECK: call void @_ZN1AC1Ei
|
|
|
|
// CHECK: call void @_ZN1BC1E1A
|
|
|
|
// CHECK: call void @_ZN1AC1Ei
|
|
|
|
// CHECK: call void @_ZN1BC1E1A
|