OSDN Git Service

PR c++/4872
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.law / typeck3.C
1 // Build don't link: 
2 // GROUPS passed typeck
3 // typeck file
4 // From: Dror Caspi <dror@fibronics.co.il>
5 // Date:     Wed, 9 Jun 1993 17:43:48 +0300
6 // Subject:  function typedefs in classes
7 // Message-ID: <199306091443.AA03735@zorba.fibronics.co.il>
8
9 class a
10 {
11  public:
12    typedef void (X)();
13
14    X x;   // Member function of type X
15 };
16
17 class b
18 {
19  public:
20    typedef void (X)();   //!!!!!! g++ says : syntax error before `;'
21
22    X x;   // Member function of type X
23 };