diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.target/arc/interrupt-3.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.target/arc/interrupt-3.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.target/arc/interrupt-3.c b/gcc-4.9/gcc/testsuite/gcc.target/arc/interrupt-3.c new file mode 100644 index 000000000..fa598d67e --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.target/arc/interrupt-3.c @@ -0,0 +1,14 @@ +void __attribute__ ((interrupt)) +handler0 (void) +{ /* { dg-error "wrong number of arguments specified" } */ +} + +void __attribute__ ((interrupt("you load too"))) +handler1 (void) +{ /* { dg-warning "is not \"ilink1\" or \"ilink2\"" } */ +} + +void __attribute__ ((interrupt(42))) +hander2 (void) +{ /* { dg-warning "is not a string constant" } */ +} |