aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/enum9.C
blob: f04deb13a838b8452902220504dd348ff881e81a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Build don't link: 
// GROUPS passed enums
enum fig {
    figgy,
    pudding,
}; // ERROR - comma

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;