repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.dg
/
20031012-1.c
blob
215c2b9c67c1170c847599e16646cefdcdb0d79a
1
/* Origin: Andrew Morton <akpm@osdl.org> */
2
/* Warn if a function addres of a non-weak function is used
3
as a truth value. */
4
/* See thread starting at http://gcc.gnu.org/ml/gcc/2003-10/msg00414.html */
5
6
void
foo
(
void
)
7
{}
8
9
void
bar
(
void
)
10
{}
11
12
int
main
() {
13
if
(
foo
)
/* { dg-warning "" } */
14
bar
();
15
return
0
;
16
}
17