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
OpenACC 'nohost' clause: harmonize 'libgomp.oacc-{c-c++-common,fortran}/routine-nohos...
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wswitch-enum-3.c
blob
98db4d578f151544e9d568fe088337c08ac25063
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wswitch-enum" } */
3
4
typedef
enum
{
a
=
2
}
T
;
5
6
int
main
()
7
{
8
switch
((
T
)
a
)
/* { dg-warning "enumeration value 'a' not handled" "a" } */
9
{
10
case
1
:
/* { dg-warning "case value '1' not in enumerated" "1" } */
11
break
;
12
}
13
return
0
;
14
}
15