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 ptr blockaddress(@indbrtest, %BB1)
29 @Addr3 = global ptr blockaddress(@squared, %Case1)
32 define i32 @indbrtest(ptr %P, ptr %Q) {
33 indirectbr ptr %P, [label %BB1, label %BB2, label %BB3]
37 %R = bitcast ptr blockaddress(@indbrtest, %BB3) to ptr
38 indirectbr ptr %R, [label %BB1, label %BB2, label %BB3]