blob: 75917d7456432c6587ff4108d4ef5b18de3c433b [file] [log] [blame]
// { dg-do assemble }
// { dg-options "-pedantic-errors" }
// GROUPS passed enums
enum Thing { FIRST, SECOND } ;
int main()
{
Thing x = FIRST ;
x = 27 ; // this line should be a type error.// { dg-error "" } .*
}