Alex Lorenz | 5ef16b8 | 2015-06-16 17:06:29 +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 when the mir file has LLVM IR and |
| 3 | # one of the machine functions has a name that doesn't match any function in |
| 4 | # the LLVM IR. |
| 5 | |
| 6 | --- | |
| 7 | |
| 8 | define i32 @foo() { |
| 9 | ret i32 0 |
| 10 | } |
| 11 | |
| 12 | ... |
| 13 | --- |
| 14 | name: foo |
Alex Lorenz | 5022f6b | 2015-08-13 23:10:16 +0000 | [diff] [blame] | 15 | body: | |
| 16 | bb.0: |
Alex Lorenz | 5ef16b8 | 2015-06-16 17:06:29 +0000 | [diff] [blame] | 17 | ... |
| 18 | --- |
| 19 | # CHECK: function 'faa' isn't defined in the provided LLVM IR |
| 20 | name: faa |
Alex Lorenz | 5022f6b | 2015-08-13 23:10:16 +0000 | [diff] [blame] | 21 | body: | |
| 22 | bb.0: |
Alex Lorenz | 5ef16b8 | 2015-06-16 17:06:29 +0000 | [diff] [blame] | 23 | ... |