| 1 |
/* Test -Wmissing-parameter-type is enabled by -Wextra */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-std=gnu89 -Wextra" } */ |
| 4 |
|
| 5 |
int foo(bar) { return bar;} /* { dg-warning "type of 'bar' defaults to 'int' \\\[-Wmissing-parameter-type\\\]" } */ |
| 6 |
|
| 7 |
|