OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Formatting fixes.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
20031012-1.c
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