view gcc/testsuite/gcc.dg/pr78775.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* PR c/78775 - [7 Regression] ICE in maybe_warn_alloc_args_overflow
   { dg-do compile }
   { dg-options "-O2" } */

int a, b, *c;

int main (void)
{
  unsigned long d = 0;
  while (1)
    {
      switch (b)
      case 'S':
	d = a;
      c = __builtin_malloc (d);
    }

  return 0;
}