blob: daf46a14e861252d540798da35411d59ce207015 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// g++ bug 900406_02
// g++ fails to correctly parse some type specifications within casts.
// This results in incorrect errors being issued.
// These errors are not issued for identical code by either cfront or
// by gcc.
// cfront 2.0 passes this test.
// keywords: syntax, array types, casts
int (*ipp)[];
int (**ippp)[];
int function ()
{
ipp = (int (*)[]) 0; // OK
ippp = (int (**)[]) 0; // gets bogus error (syntax)
return 0;
}
int main () { return 0; }
|