| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-W -Wall" } */ |
| 3 |
const int b; |
| 4 |
typedef void (*ft1)(int[b++]); /* { dg-error "read-only variable" } */ |
| 5 |
void bar(int * z); |
| 6 |
void baz() |
| 7 |
{ |
| 8 |
(ft1) bar; /* { dg-warning "statement with no effect" } */ |
| 9 |
} |
| 10 |
|