xref: /llvm-project/llvm/test/CodeGen/RISCV/interrupt-attr-args-error.ll (revision 490cd1164c1b247020deab3adf11553bffc673ac)
1; RUN: not --crash llc -mtriple riscv32-unknown-elf -o - %s \
2; RUN: 2>&1 | FileCheck %s
3; RUN: not --crash llc -mtriple riscv64-unknown-elf -o - %s \
4; RUN: 2>&1 | FileCheck %s
5
6; CHECK: LLVM ERROR: Functions with the interrupt attribute cannot have arguments!
7define i32 @isr_user(i8 %n) #0 {
8  ret i32 0
9}
10
11attributes #0 = { "interrupt"="supervisor" }
12