Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.brendan/enum-clash.C

raw
1 // { dg-do assemble }
2 // { dg-options "-pedantic-errors" }
3 // GROUPS passed arm
4 enum color {red, yellow, green=20, blue};
5 color c = 1; // this should be an error// { dg-error "" } .*
6 int i = yellow;