xref: /aosp_15_r20/external/llvm/test/CodeGen/MIR/Generic/machine-basic-block-unknown-name.mir (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker# This test ensures that an error is reported whenever the MIR parser can't find
3*9880d681SAndroid Build Coastguard Worker# a basic block with the machine basis block's name.
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker--- |
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker  define i32 @foo() {
8*9880d681SAndroid Build Coastguard Worker  entry:
9*9880d681SAndroid Build Coastguard Worker    ret i32 0
10*9880d681SAndroid Build Coastguard Worker  }
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Worker...
13*9880d681SAndroid Build Coastguard Worker---
14*9880d681SAndroid Build Coastguard Workername:            foo
15*9880d681SAndroid Build Coastguard Workerbody: |
16*9880d681SAndroid Build Coastguard Worker  ; CHECK: [[@LINE+1]]:3: basic block 'entrie' is not defined in the function 'foo'
17*9880d681SAndroid Build Coastguard Worker  bb.0.entrie:
18*9880d681SAndroid Build Coastguard Worker...
19