Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/pr84512.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O3 -fdump-tree-optimized" } */ int foo() { int a[10]; for(int i = 0; i < 10; ++i) a[i] = i*i; int res = 0; for(int i = 0; i < 10; ++i) res += a[i]; return res; } /* Listed targets xfailed due to PR84958. */ /* { dg-final { scan-tree-dump "return 285;" "optimized" { xfail { amdgcn*-*-* nvptx*-*-* } } } } */