OSDN Git Service

* gcc.dg/pr34856.c: Condition use of -maltivec on
[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