This commit was manufactured by cvs2svn to create branch
[official-gcc.git] / gcc / testsuite / gcc.dg / 20031012-1.c
blob215c2b9c67c1170c847599e16646cefdcdb0d79a
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 */
6 void foo(void)
7 {}
9 void bar(void)
12 int main() {
13 if (foo) /* { dg-warning "" } */
14 bar();
15 return 0;