| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-additional-options "-Wattributes" } */ |
| 3 |
|
| 4 |
__attribute__((signal(0))) static void fun1 (void); /* { dg-error "expects a constant positive integer" } */ |
| 5 |
|
| 6 |
__attribute__((signal("1"))) static void fun2 (void); /* { dg-error "expects a constant positive integer" } */ |
| 7 |
|
| 8 |
__attribute__((interrupt(-1))) void fun3 (void); /* { dg-error "expects a constant positive integer" } */ |
| 9 |
|
| 10 |
__attribute__((interrupt("2"))) void fun4 (void); /* { dg-error "expects a constant positive integer" } */ |
| 11 |
|
| 12 |
__attribute__((noblock)) void fun5 (void) { } /* { dg-warning "attribute ignored on non-ISR" } */ |
| 13 |
|