Debian Codegraph @

gcc/testsuite/g++.dg/ext/underlying_type12.C

raw
1 // PR c++/79657
2 // { dg-do compile { target c++11 } }
3
4 enum A { x };
5 enum B { a = (__underlying_type (A)) 1 };
6 enum C { b = (__underlying_type (C)) 1 }; // { dg-error "incomplete" }