Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/restrict-4.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
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized -fno-ipa-icf" } */ int foo (int *x, int y) { int *__restrict p1 = x; int *__restrict p2 = x + 32; p1[y] = 1; p2[4] = 2; return p1[y]; } int bar (int *x, int y) { int *__restrict p1 = x; int *p3 = x + 32; int *__restrict p2 = p3; p1[y] = 1; p2[4] = 2; return p1[y]; } /* { dg-final { scan-tree-dump-times "return 1;" 2 "optimized" { xfail *-*-* } } } */