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.5.1/] [gcc/] [testsuite/] [gcc.dg/] [Wold-style-definition-1.c] - Rev 329
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test for warning about old-style function definition. */ /* Origin: Andreas Jaeger <aj@suse.de> */ /* { dg-do compile } */ /* { dg-options "-Wold-style-definition" } */ void bar (a) int a; { } /* { dg-warning "old-style function definition" } */ void bar1 () {} /* { dg-warning "old-style function definition" } */ extern void bar2 (void); void bar2 () {} /* { dg-warning "old-style function definition" } */ extern void bar3 (int); void bar3 (a) {} /* { dg-warning "old-style function definition" } */ void bar4 (a) {} /* { dg-warning "old-style function definition" } */ void bar5 (int a) {} void bar6 (void) {}
Go to most recent revision | Compare with Previous | Blame | View Log