c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / pr90590-1.c
blob4e11debb7fa1c841c611701afdd146173b8e4459
1 // PR c++/90590
2 // { dg-options -Wswitch }
3 #include "pr90590-1.h"
5 void
6 g ()
8 enum E e = _A;
9 switch (e) // { dg-bogus "enumeration value '_C' not handled in switch" }
11 case _A:
12 case _B:
13 break;