OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [20031012-1.c] - Blame information for rev 645

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-options "-Waddress" } */
2
/* Origin: Andrew Morton <akpm@osdl.org> */
3
/* Warn if a function addres 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  */
6
 
7
void foo(void)
8
{}
9
 
10
void bar(void)
11
{}
12
 
13
int main() {
14
        if (foo) /* { dg-warning "" } */
15
                bar();
16
        return 0;
17
}
18
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.