summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/enum-clash.C
blob: 68639a1e1434f4ffe7ee7addac454675a3744c25 (plain)
1
2
3
4
5
6
// Build don't link: 
// Special g++ Options: -pedantic-errors
// GROUPS passed arm
enum color {red, yellow, green=20, blue};
color c = 1;	// this should be an error// ERROR - .*
int i = yellow;