OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [Wold-style-definition-1.c] - Diff between revs 816 and 826

Only display areas with differences | Details | Blame | View Log

Rev 816 Rev 826
/* Test for warning about old-style function definition.  */
/* Test for warning about old-style function definition.  */
 
 
/* Origin: Andreas Jaeger <aj@suse.de> */
/* Origin: Andreas Jaeger <aj@suse.de> */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-Wold-style-definition" } */
/* { dg-options "-Wold-style-definition" } */
 
 
void
void
bar (a) int a; { } /* { dg-warning "old-style function definition" } */
bar (a) int a; { } /* { dg-warning "old-style function definition" } */
 
 
void bar1 () {} /* { dg-warning "old-style function definition" } */
void bar1 () {} /* { dg-warning "old-style function definition" } */
 
 
extern void bar2 (void);
extern void bar2 (void);
 
 
void bar2 () {} /* { dg-warning "old-style function definition" } */
void bar2 () {} /* { dg-warning "old-style function definition" } */
 
 
extern void bar3 (int);
extern void bar3 (int);
 
 
void bar3 (a) {} /* { dg-warning "old-style function definition" } */
void bar3 (a) {} /* { dg-warning "old-style function definition" } */
 
 
void bar4 (a) {} /* { dg-warning "old-style function definition" } */
void bar4 (a) {} /* { dg-warning "old-style function definition" } */
 
 
void bar5 (int a) {}
void bar5 (int a) {}
 
 
void bar6 (void) {}
void bar6 (void) {}
 
 

powered by: WebSVN 2.1.0

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