xref: /aosp_15_r20/external/llvm/test/Assembler/2003-05-15-SwitchBug.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as %s -o /dev/null
2*9880d681SAndroid Build Coastguard Worker; RUN: verify-uselistorder %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker; Check minimal switch statement
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine void @test(i32 %X) {
7*9880d681SAndroid Build Coastguard Worker        switch i32 %X, label %dest [
8*9880d681SAndroid Build Coastguard Worker        ]
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Workerdest:           ; preds = %0
11*9880d681SAndroid Build Coastguard Worker        ret void
12*9880d681SAndroid Build Coastguard Worker}
13