OSDN Git Service

* gcc.dg/Warray-bounds.c: XFAIL test on 32-bit hppa targets.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 20041213-1.c
1 /* { 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