aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/invalid-uselistorder-function-missing-named.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/invalid-uselistorder-function-missing-named.ll')
-rw-r--r--test/Assembler/invalid-uselistorder-function-missing-named.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Assembler/invalid-uselistorder-function-missing-named.ll b/test/Assembler/invalid-uselistorder-function-missing-named.ll
new file mode 100644
index 0000000..c682fbe
--- /dev/null
+++ b/test/Assembler/invalid-uselistorder-function-missing-named.ll
@@ -0,0 +1,6 @@
+; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
+; CHECK: error: value has no uses
+define void @foo() {
+ unreachable
+ uselistorder i32 %val, { 1, 0 }
+}