2016-07-16 10:24:59 +08:00
|
|
|
# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
|
2015-06-20 04:12:03 +08:00
|
|
|
# This test ensures that an error is reported whenever the MIR parser can't find
|
|
|
|
# a basic block with the machine basis block's name.
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
define i32 @foo() {
|
|
|
|
entry:
|
|
|
|
ret i32 0
|
|
|
|
}
|
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
name: foo
|
2015-08-14 07:10:16 +08:00
|
|
|
body: |
|
|
|
|
; CHECK: [[@LINE+1]]:3: basic block 'entrie' is not defined in the function 'foo'
|
|
|
|
bb.0.entrie:
|
2015-06-20 04:12:03 +08:00
|
|
|
...
|