brintos

brintos / llvm-project-archived public Read only

0
0
Text · 499 B · ce8f820 Raw
26 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -emit-llvm %s -o - | \2// RUN: FileCheck %s3// RUN: %clang_cc1 -triple i386-apple-darwin -std=c++11 -emit-llvm %s -o - |   \4// RUN: FileCheck %s5 6struct A {7  A(int);8};9 10struct B {11  B(A);12};13 14int main () {15  (B)10;16  B(10);17  static_cast<B>(10);18}19 20// CHECK: call void @_ZN1AC1Ei21// CHECK: call void @_ZN1BC1E1A22// CHECK: call void @_ZN1AC1Ei23// CHECK: call void @_ZN1BC1E1A24// CHECK: call void @_ZN1AC1Ei25// CHECK: call void @_ZN1BC1E1A26