1 ; RUN: opt -mergefunc -disable-output < %s
2 ; This used to trigger a ConstantExpr::getBitCast assertion.
4 define void @t1() unnamed_addr uwtable ssp align 2 {
6 switch i32 undef, label %sw.bb12 [
11 sw.bb: ; preds = %entry
14 sw.bb4: ; preds = %entry
17 sw.bb12: ; preds = %entry
21 define void @t2() unnamed_addr uwtable ssp align 2 {
23 switch i32 undef, label %sw.bb8 [
28 sw.bb: ; preds = %entry
31 sw.bb4: ; preds = %entry
34 sw.bb8: ; preds = %entry