☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gcc.dg
/
pr81779.c
☽
☼
gcc/testsuite/gcc.dg/pr81779.c
code
plain
raw
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
}