Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900406_02.C
blobbcbffeb559da6e740397ab75b75fbb6b601892e0
1 // { dg-do run  }
2 // g++ bug 900406_02
4 // g++ fails to correctly parse some type specifications within casts.
6 // This results in incorrect errors being issued.
8 // These errors are not issued for identical code by either cfront or
9 // by gcc.
11 // cfront 2.0 passes this test.
13 // keywords: syntax, array types, casts
15 int (*ipp)[];
16 int (**ippp)[];
18 int function ()
20   ipp = (int (*)[]) 0;                  // OK
21   ippp = (int (**)[]) 0;                // { dg-bogus "" }  (syntax)
22   return 0;
25 int main () { return 0; }