OSDN Git Service

* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.brendan / enum-clash.C
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;