aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/Wswitch-outside-range-4.c
blob: d9bd756dc507e7bd5881b8728e53bfaacd23a55d (plain)
1
2
3
4
5
6
7
8
9
// PR c++/90875
// { dg-options "-Wno-pedantic -Wno-switch-outside-range" }

void f(char c)
{
  switch (c)
  
    case -300 ... 300:; // { dg-bogus "lower value in case label range less than minimum value for type|upper value in case label range exceeds maximum value for type" }
}