1 /* PR c/78775 - [7 Regression] ICE in maybe_warn_alloc_args_overflow 2 { dg-do compile } 3 { dg-options "-O2" } */ 4 5 int a, b, *c; 6 main(void)7int main (void) 8 { 9 unsigned long d = 0; 10 while (1) 11 { 12 switch (b) 13 case 'S': 14 d = a; 15 c = __builtin_malloc (d); 16 } 17 18 return 0; 19 } 20