repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Tighten condition in vect/pr85586.c (PR 85654)
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr81779.c
blob
6e796384a67a6511ad8a71018f3fc30f6548e6f6
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
}