2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / enum-clash.C
blob81341df27e9d39e37434e6887ce79d6caa209c60
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;