| 1 |
/* { dg-options "-g" } */ |
| 2 |
|
| 3 |
void __attribute__((interrupt)) |
| 4 |
universal_handler (void) |
| 5 |
{ |
| 6 |
} |
| 7 |
|
| 8 |
void __attribute__((interrupt("dma0","Vss","dma1"))) |
| 9 |
g (void) |
| 10 |
{ /* { dg-warning "is not \"reset\"" } */ |
| 11 |
} |
| 12 |
|
| 13 |
void __attribute__((interrupt("dma0","dma1","timer1","reset"), |
| 14 |
forwarder_section("test"))) |
| 15 |
misc_handler (void) |
| 16 |
{ |
| 17 |
} |
| 18 |
|
| 19 |
void __attribute__((interrupt(dma0,42))) |
| 20 |
h (void) |
| 21 |
{ /* { dg-warning "is not a string constant" } */ |
| 22 |
} |
| 23 |
|
| 24 |
/* { dg-final { scan-assembler-times "b\[ \t\]*_misc_handler" 4 } } */ |