Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/20031012-1.c @ 157:dafe684d005c
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:08:54 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-options "-Waddress" } */ /* Origin: Andrew Morton <akpm@osdl.org> */ /* Warn if a function address of a non-weak function is used as a truth value. */ /* See thread starting at http://gcc.gnu.org/ml/gcc/2003-10/msg00414.html */ void foo(void) {} void bar(void) {} int main() { if (foo) /* { dg-warning "" } */ bar(); return 0; }