Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/enum_base5.C

raw
1 // PR c++/96380
2 // { dg-do compile { target c++11 } }
3
4 extern const int a, b;
5 enum struct c;
6 template <class>
7 enum struct c : union enum struct c { e = b, f = a }; // { dg-error "types may not be defined|expected|elaborated-type-specifier" }