Document gcov-io (PR gcov-profile/84735).
[official-gcc.git] / gcc / testsuite / gcc.dg / 20031012-1.c
blob24a68d0e3da192e1a74a8f7ca66899df23564c5c
1 /* { dg-options "-Waddress" } */
2 /* Origin: Andrew Morton <akpm@osdl.org> */
3 /* Warn if a function address of a non-weak function is used
4 as a truth value. */
5 /* See thread starting at http://gcc.gnu.org/ml/gcc/2003-10/msg00414.html */
7 void foo(void)
8 {}
10 void bar(void)
13 int main() {
14 if (foo) /* { dg-warning "" } */
15 bar();
16 return 0;