summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/enum-clash.C
blob: 81341df27e9d39e37434e6887ce79d6caa209c60 (plain)
1
2
3
4
5
6
// { dg-do assemble  }
// { dg-options "-pedantic-errors" }
// GROUPS passed arm
enum color {red, yellow, green=20, blue};
color c = 1;	// this should be an error// { dg-error "" } .*
int i = yellow;