| 1 |
/* { dg-do compile } */ |
| 2 |
|
| 3 |
/* Reject the negated form of non-negatable attributes. */ |
| 4 |
|
| 5 |
__attribute__ ((target ("no-general-regs-only"))) |
| 6 |
int |
| 7 |
foo (int a) |
| 8 |
{ |
| 9 |
return a + 1; |
| 10 |
} |
| 11 |
|
| 12 |
/* { dg-error "does not allow a negated form" "" { target *-*-* } 0 } */ |