aboutsummaryrefslogtreecommitdiff
path: root/test/Assembler/invalid-uselistorder_bb-not-bb.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/invalid-uselistorder_bb-not-bb.ll')
-rw-r--r--test/Assembler/invalid-uselistorder_bb-not-bb.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Assembler/invalid-uselistorder_bb-not-bb.ll b/test/Assembler/invalid-uselistorder_bb-not-bb.ll
new file mode 100644
index 000000000000..e59e7543ae7d
--- /dev/null
+++ b/test/Assembler/invalid-uselistorder_bb-not-bb.ll
@@ -0,0 +1,6 @@
+; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
+; CHECK: error: expected basic block in uselistorder_bb
+define i32 @foo(i32 %arg) {
+ ret i32 %arg
+}
+uselistorder_bb @foo, %arg, { 1, 0 }