aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/invalid-landingpad.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/invalid-landingpad.ll')
-rw-r--r--test/Assembler/invalid-landingpad.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Assembler/invalid-landingpad.ll b/test/Assembler/invalid-landingpad.ll
new file mode 100644
index 0000000..c8eab4a
--- /dev/null
+++ b/test/Assembler/invalid-landingpad.ll
@@ -0,0 +1,7 @@
+; RUN: not llvm-as < %s 2>&1 | FileCheck %s
+
+; CHECK: clause argument must be a constant
+
+define void @test(i32 %in) {
+ landingpad {} personality void()* null filter i32 %in
+}