aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/MIR/function-missing-machine-function.mir
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/MIR/function-missing-machine-function.mir')
-rw-r--r--test/CodeGen/MIR/function-missing-machine-function.mir13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/MIR/function-missing-machine-function.mir b/test/CodeGen/MIR/function-missing-machine-function.mir
new file mode 100644
index 000000000000..71b5b2845340
--- /dev/null
+++ b/test/CodeGen/MIR/function-missing-machine-function.mir
@@ -0,0 +1,13 @@
+# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
+# This test verifies that an error is reported when a MIR file has some
+# function but is missing a corresponding machine function.
+
+# CHECK: no machine function information for function 'foo' in the MIR file
+
+--- |
+
+ define i32 @foo() {
+ ret i32 0
+ }
+
+...