gcc/testsuite/gcc.target/arc/interrupt-3.c
raw| 1 | void __attribute__ ((interrupt)) |
| 2 | handler0 (void) |
| 3 | { /* { dg-error "wrong number of arguments specified" } */ |
| 4 | } |
| 5 | |
| 6 | void __attribute__ ((interrupt("you load too"))) |
| 7 | handler1 (void) |
| 8 | { /* { dg-warning "is not \"ilink" } */ |
| 9 | } |
| 10 | |
| 11 | void __attribute__ ((interrupt(42))) |
| 12 | hander2 (void) |
| 13 | { /* { dg-warning "is not a string constant" } */ |
| 14 | } |