repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[31/77] Use scalar_int_mode for move2add
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
enum-clash.C
blob
81341df27e9d39e37434e6887ce79d6caa209c60
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;