summaryrefslogtreecommitdiff
path: root/test/Verifier/swiftself.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Verifier/swiftself.ll')
-rw-r--r--test/Verifier/swiftself.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Verifier/swiftself.ll b/test/Verifier/swiftself.ll
new file mode 100644
index 0000000000000..18789e11c8d72
--- /dev/null
+++ b/test/Verifier/swiftself.ll
@@ -0,0 +1,4 @@
+; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
+
+declare void @a(i32* swiftself %a, i32* swiftself %b)
+; CHECK: Cannot have multiple 'swiftself' parameters!