gcc/testsuite/gcc.target/epiphany/interrupt.c
raw| 1 | /* { dg-options "-g" } */ |
| 2 | |
| 3 | void __attribute__((interrupt("dma0"))) |
| 4 | dma0_handler (void) |
| 5 | { |
| 6 | } |
| 7 | |
| 8 | void __attribute__((interrupt("Vss"))) |
| 9 | g (void) |
| 10 | { /* { dg-warning "is not \"reset\"" } */ |
| 11 | } |
| 12 | |
| 13 | void __attribute__((interrupt(42))) |
| 14 | h (void) |
| 15 | { /* { dg-warning "is not a string constant" } */ |
| 16 | } |
| 17 | |
| 18 | /* { dg-final { scan-assembler-times "b\[ \t\]*_dma0_handler" 1 } } */ |