aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr56484.c
blob: 894862cd461c4ebf669b66b94697ed2e4f3021c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR rtl-optimization/56484 */

unsigned char b[4096];
int bar (void);

int
foo (void)
{
  int a = 0;
  while (bar ())
    {
      int c = bar ();
      a = a < 0 ? a : c;
      __builtin_memset (b, 0, sizeof b);
    }
  return a;
}