summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr40335.C
blob: 14ea95d40866edd968c52ae4b4206294699890ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do run } */

extern "C" void abort (void);
int
main (void)
{
  int i = -1; 
  switch ((signed char) i)
    {
      case 255: /* { dg-bogus "exceeds maximum value" "" { xfail *-*-* } } */
	abort ();
      default:
	break;
    }
}