implementation keyword is going .. going .. gone.
[oota-llvm.git] / test / Integer / testswitch_bt.ll
1 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
2 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3 ; RUN: diff %t1.ll %t2.ll
4
5   %i35 = type i35
6
7 implementation
8
9 define i35 @"squared"(%i35 %i0)
10 begin
11         switch i35 %i0, label %Default [ 
12                 i35 1, label %Case1
13                 i35 2, label %Case2
14                 i35 4, label %Case4 ]
15
16 Default:
17     ret i35 -1                      ; Unrecognized input value
18
19 Case1:
20     ret i35 1
21 Case2:
22     ret i35 4
23 Case4:
24     ret i35 16
25 end