Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.bugs / 900324_03.C
blob8c9989dbd51a6baae1761e746595b7bf6e8c39c6
1 // { dg-do run  }
2 // g++ 1.37.1 bug 900324_03
4 // g++ is unable to correctly parse declarations of non-global function-pointer
5 // variables and/or function-pointer formal parameters.
7 // Cfront 2.0 passes this test.
9 // keywords: syntax, function pointers, block local, formal
11 void (*p0)();                           // OK
13 void function_0 ()
15   void (*p1)();                         // { dg-bogus "" } s
18 void function_1 (void (*p2)());         // { dg-bogus "" } s
20 void (*function_2 ()) ();               // OK
22 int main () { return 0; }