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
/
enum5.C
blob
75917d7456432c6587ff4108d4ef5b18de3c433b
1
// { dg-do assemble }
2
// { dg-options "-pedantic-errors" }
3
// GROUPS passed enums
4
enum Thing { FIRST, SECOND } ;
5
6
int main()
7
{
8
Thing x = FIRST ;
9
x = 27 ; // this line should be a type error.// { dg-error "" } .*
10
}