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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [Wold-style-definition-1.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* Test for warning about old-style function definition.  */
2
 
3
/* Origin: Andreas Jaeger <aj@suse.de> */
4
/* { dg-do compile } */
5
/* { dg-options "-Wold-style-definition" } */
6
 
7
void
8
bar (a) int a; { } /* { dg-warning "old-style function definition" } */
9
 
10
void bar1 () {} /* { dg-warning "old-style function definition" } */
11
 
12
extern void bar2 (void);
13
 
14
void bar2 () {} /* { dg-warning "old-style function definition" } */
15
 
16
extern void bar3 (int);
17
 
18
void bar3 (a) {} /* { dg-warning "old-style function definition" } */
19
 
20
void bar4 (a) {} /* { dg-warning "old-style function definition" } */
21
 
22
void bar5 (int a) {}
23
 
24
void bar6 (void) {}

powered by: WebSVN 2.1.0

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