OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* gcc.target/i386/sse-17.c: Include sse2-check.h.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wswitch-enum-3.c
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