gcc/testsuite/g++.old-deja/g++.law/typeck3.C
raw| 1 | // { dg-do assemble } |
| 2 | // GROUPS passed typeck |
| 3 | // typeck file |
| 4 | // From: Dror Caspi <[email protected]> |
| 5 | // Date: Wed, 9 Jun 1993 17:43:48 +0300 |
| 6 | // Subject: function typedefs in classes |
| 7 | // Message-ID: <[email protected]> |
| 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 | }; |