blob: b218afd72ea366f41912f546bc3587f1f9550ed5 [file] [log] [blame]
Matthias Braun538859c2016-07-16 02:24:59 +00001# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
Alex Lorenz5ef16b82015-06-16 17:06:29 +00002# 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---
14name: foo
15...
16---
17# CHECK: function 'faa' isn't defined in the provided LLVM IR
18name: faa
Alex Lorenz5ef16b82015-06-16 17:06:29 +000019...