2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / parsing9.C
blobb4de05278d712946de8b5f87249224bd47588e16
1 // { dg-do assemble  }
2 // GROUPS passed parsing
3 // From: Jason Merrill <jason@cygnus.com>
4 // Date:     Fri, 13 Aug 93 12:49:11 PDT
5 // Subject:  2.4.5 won't compile array of pointers to functions returning T
6 // Message-ID: <9308131949.AA26348@cygnus.com>
7 // From: "Robert M. Keller" <keller@jarthur.Claremont.EDU>
8 // Subject: g++ bug
9 // Date: Fri, 13 Aug 93 10:09:27 PDT
11 /* Testing declaration of "array of pointers to functions returning T" */
13 typedef int T;
15 T foo()
16 { return 10; }
18 T bar()
19 { return 20; }
21 T baz()
22 { return 30; }
24 int main()
26 T (*apfrt[10])();
28 apfrt[0] = foo;
29 apfrt[1] = bar;
30 apfrt[2] = baz;