]>
Commit | Line | Data |
---|---|---|
2be4dfcb MP |
1 | /* PR c/81779 */ |
2 | /* { dg-do compile } */ | |
3 | /* { dg-options "-Wdeclaration-after-statement" } */ | |
4 | ||
5 | #include <stdbool.h> | |
6 | ||
7 | bool | |
8 | f2 (char *p) | |
9 | { | |
10 | if (!p) | |
11 | return false; | |
12 | ||
13 | bool ret = true; /* { dg-warning "ISO C90 forbids mixed declarations and code" } */ | |
14 | return ret; | |
15 | } |