blob: 75917d7456432c6587ff4108d4ef5b18de3c433b (
plain)
1
2
3
4
5
6
7
8
9
10
|
// { 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 "" } .*
}
|