aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/enum9.C
blob: 6eb94dab2b962cc386fe27918aad728e6104c9b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// GROUPS passed enums
enum fig {
    figgy,
    pudding,  // { dg-error "comma at end" "" { target { ! c++11 } } }
};

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;