aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/invalid-label.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/invalid-label.ll')
-rw-r--r--test/Assembler/invalid-label.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Assembler/invalid-label.ll b/test/Assembler/invalid-label.ll
new file mode 100644
index 0000000..33dc636
--- /dev/null
+++ b/test/Assembler/invalid-label.ll
@@ -0,0 +1,11 @@
+; RUN: not llvm-as < %s >/dev/null 2> %t
+; RUN: FileCheck %s < %t
+; Test the case where an invalid label name is used
+
+; CHECK: unable to create block named 'bb'
+
+define void @test(label %bb) {
+bb:
+ ret void
+}
+