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++.brendan/] [enum9.C] - Rev 338
Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed enums
enum fig {
figgy,
pudding, // { dg-error "comma at end" }
};
class X {
public:
static fig (*open)(void *thing, const char *filename);
static fig (*parse)(void *thing);
};
enum fig (*X::open)(void *thing, const char *filename) = 0;
fig (*X::parse)(void *thing) = 0;