URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [typeck3.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed typeck
// typeck file
// From: Dror Caspi <dror@fibronics.co.il>
// Date: Wed, 9 Jun 1993 17:43:48 +0300
// Subject: function typedefs in classes
// Message-ID: <199306091443.AA03735@zorba.fibronics.co.il>
class a
{
public:
typedef void (X)();
X x; // Member function of type X
};
class b
{
public:
typedef void (X)(); //!!!!!! g++ says : syntax error before `;'
X x; // Member function of type X
};