aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/torture/pr56837.C
blob: d007122804716604b68b2cc64266baf4866d7919 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-do run }
// { dg-options "-ftree-loop-distribute-patterns" }

extern "C" void abort (void);
extern "C" int memcmp (const void *, const void *, __SIZE_TYPE__);

bool b1[8];
bool b2[8] = { true, true, true, true, true, true, true, true };

int main()
{
  unsigned int i;
  for(i=0 ; i < 8; i++)
    b1[i] = true;

  if (memcmp (b1, b2, 8) != 0)
    abort ();

  return 0;
}