summaryrefslogtreecommitdiff
path: root/test/Verifier/token7.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Verifier/token7.ll')
-rw-r--r--test/Verifier/token7.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Verifier/token7.ll b/test/Verifier/token7.ll
new file mode 100644
index 0000000000000..939878cc4275a
--- /dev/null
+++ b/test/Verifier/token7.ll
@@ -0,0 +1,8 @@
+; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
+
+define void @f() {
+entry:
+ call token () undef ()
+ ret void
+}
+; CHECK: Return type cannot be token for indirect call!