summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr38661-1.c
blob: 065f12010a73e610bc417dfc5a9b56a416d0f837 (plain)
1
2
3
4
5
6
7
8
9
/* We used to ICE because we would wrap INT_MAX
   into INT_MIN while doing the switch converison. */

const char *func(int val) {
 switch (val) {
   case - __INT_MAX__ -1 : return "foo";
   default: return "";
 }
}