Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / cast-conversion.cpp
blobce8f82089e1a03bef96865a73d300e2f93b0ff20
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -emit-llvm %s -o - | \
2 // RUN: FileCheck %s
3 // RUN: %clang_cc1 -triple i386-apple-darwin -std=c++11 -emit-llvm %s -o - | \
4 // RUN: FileCheck %s
6 struct A {
7 A(int);
8 };
10 struct B {
11 B(A);
14 int main () {
15 (B)10;
16 B(10);
17 static_cast<B>(10);
20 // CHECK: call void @_ZN1AC1Ei
21 // CHECK: call void @_ZN1BC1E1A
22 // CHECK: call void @_ZN1AC1Ei
23 // CHECK: call void @_ZN1BC1E1A
24 // CHECK: call void @_ZN1AC1Ei
25 // CHECK: call void @_ZN1BC1E1A