Alex Lorenz | 00302df | 2015-06-19 20:12:03 +0000 | [diff] [blame] | 1 | # RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s |
| 2 | # This test ensures that an error is reported whenever the MIR parser can't find |
| 3 | # a basic block with the machine basis block's name. |
| 4 | |
| 5 | --- | |
| 6 | |
| 7 | define i32 @foo() { |
| 8 | entry: |
| 9 | ret i32 0 |
| 10 | } |
| 11 | |
| 12 | ... |
| 13 | --- |
| 14 | name: foo |
| 15 | body: |
Alex Lorenz | b1f9ce8 | 2015-07-08 20:22:20 +0000 | [diff] [blame] | 16 | # CHECK: [[@LINE+2]]:18: basic block 'entrie' is not defined in the function 'foo' |
Alex Lorenz | 33f0aef | 2015-06-26 16:46:11 +0000 | [diff] [blame] | 17 | - id: 0 |
| 18 | name: entrie |
Alex Lorenz | 00302df | 2015-06-19 20:12:03 +0000 | [diff] [blame] | 19 | ... |