Sign in
llvm
/
llvm-archive
/
48649d2c83b557841c9e5c978d9ab5af13cb52e5
/
.
/
llvm-gcc-4.0
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
enum-clash.C
blob: 81341df27e9d39e37434e6887ce79d6caa209c60 [
file
] [
log
] [
blame
]
// { 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
;