OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [900324_03.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do run  }
2
// g++ 1.37.1 bug 900324_03
3
 
4
// g++ is unable to correctly parse declarations of non-global function-pointer
5
// variables and/or function-pointer formal parameters.
6
 
7
// Cfront 2.0 passes this test.
8
 
9
// keywords: syntax, function pointers, block local, formal
10
 
11
void (*p0)();                           // OK
12
 
13
void function_0 ()
14
{
15
  void (*p1)();                         // { dg-bogus "" } s
16
}
17
 
18
void function_1 (void (*p2)());         // { dg-bogus "" } s
19
 
20
void (*function_2 ()) ();               // OK
21
 
22
int main () { return 0; }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.