Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr83323.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-do run } */ /* { dg-options "-O3 -floop-unroll-and-jam --param unroll-jam-min-percent=0" } */ int x[1024], y[1024]; void __attribute__((noipa)) foo () { for (int i = 0; i < 1024; ++i) { x[i] = 0; for (int j = 0; j < 1024; ++j) if (!y[j]) x[i] = 1; } } int main() { y[1023] = 1; foo (); if (x[1] != 1) __builtin_abort (); return 0; }