]>
Commit | Line | Data |
---|---|---|
ea9e0d6c MS |
1 | /* PR c/102759 - ICE calling a function taking an argument redeclared |
2 | without a prototype. | |
3 | { dg-do compile } | |
4 | { dg-options "-Wall" } */ | |
5 | ||
6 | void f (void) | |
7 | { | |
8 | void gia (int[2]); | |
9 | void g (); | |
10 | } | |
11 | ||
12 | /* Redeclaring the g(int[]) above without a prototype loses it. */ | |
13 | void gia (); | |
14 | void g (int[2]); | |
15 | ||
16 | void h (void ) | |
17 | { | |
18 | gia (gia); | |
19 | gia (g); | |
20 | } |