rt_gccstream/gcc/testsuite/gcc.c-torture/compile/pr38661.c

10 lines
210 B
C

/* 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__: return "foo";
default: return "";
}
}