aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/MIR/machine-function-redefinition-error.mir
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/MIR/machine-function-redefinition-error.mir')
-rw-r--r--test/CodeGen/MIR/machine-function-redefinition-error.mir10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/MIR/machine-function-redefinition-error.mir b/test/CodeGen/MIR/machine-function-redefinition-error.mir
new file mode 100644
index 000000000000..be84161b5630
--- /dev/null
+++ b/test/CodeGen/MIR/machine-function-redefinition-error.mir
@@ -0,0 +1,10 @@
+# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
+# This test ensures that the machine function errors are reported correctly.
+
+---
+name: foo
+...
+---
+# CHECK: redefinition of machine function 'foo'
+name: foo
+...