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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [20041213-1.c] - Blame information for rev 867

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* test redeclarations with void and implicit int */
3
extern foo1(); /* { dg-error "error: previous declaration" } */
4
extern void foo1(); /* { dg-error "error: conflicting types" } */
5
 
6
extern void foo2(); /* { dg-error "error: previous declaration" } */
7
extern foo2(); /* { dg-error "error: conflicting types" } */
8
 
9
void foo3() {} /* { dg-error "error: previous definition" } */
10
extern foo3(); /* { dg-error "error: conflicting types" } */
11
 
12
extern foo4(); /* { dg-error "error: previous declaration" } */
13
void foo4() {} /* { dg-error "error: conflicting types" } */
14
 
15
extern void foo5(); /* { dg-warning "previous declaration" } */
16
foo5() {} /* { dg-warning "conflicting types" } */
17
 
18
foo6() {} /* { dg-error "error: previous definition" } */
19
extern void foo6(); /* { dg-error "error: conflicting types" } */
20
 
21
foo7() {} /* { dg-error "error: previous definition" } */
22
void foo7() {} /* { dg-error "error: conflicting types" } */
23
 
24
void foo8() {} /* { dg-error "error: previous definition" } */
25
foo8() {} /* { dg-error "error: conflicting types" } */
26
 
27
int use9() { foo9(); } /* { dg-warning "previous implicit declaration" } */
28
extern void foo9(); /* { dg-warning "conflicting types" } */
29
 
30
int use10() { foo10(); } /* { dg-warning "previous implicit declaration" } */
31
void foo10() {} /* { dg-warning "conflicting types" } */
32
 

powered by: WebSVN 2.1.0

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