diff options
Diffstat (limited to 'test/CodeGen/BPF/many_args2.ll')
-rw-r--r-- | test/CodeGen/BPF/many_args2.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/BPF/many_args2.ll b/test/CodeGen/BPF/many_args2.ll new file mode 100644 index 000000000000..a69886c2b208 --- /dev/null +++ b/test/CodeGen/BPF/many_args2.ll @@ -0,0 +1,15 @@ +; RUN: not llc -march=bpf < %s 2> %t1 +; RUN: FileCheck %s < %t1 +; CHECK: too many args + +; Function Attrs: nounwind readnone uwtable +define i32 @bar(i32 %a, i32 %b, i32 %c, i32 %d, i32 %e, i32 %f) #0 { +entry: + ret i32 1 +} + +; Function Attrs: nounwind readnone uwtable +define i32 @foo(i32 %a, i32 %b, i32 %c) #0 { +entry: + ret i32 1 +} |