1 ; RUN: llvm-as < %s | llvm-dis > %t1.ll
2 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3 ; RUN: diff %t1.ll %t2.ll
7 define i32 @squared(i32 %i0) {
8 switch i32 %i0, label %Default [
28 @Addr = global i8* blockaddress(@indbrtest, %BB1)
29 @Addr3 = global i8* blockaddress(@squared, %Case1)
32 define i32 @indbrtest(i8* %P, i32* %Q) {
33 indirectbr i8* %P, [label %BB1, label %BB2, label %BB3]
35 indirectbr i32* %Q, []
37 %R = bitcast i8* blockaddress(@indbrtest, %BB3) to i8*
38 indirectbr i8* %R, [label %BB1, label %BB2, label %BB3]