Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr42916.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O1 -funroll-loops -ftree-vectorize -fcompare-debug" } */ /* { dg-xfail-if "" { powerpc-ibm-aix* } } */ int seed; static inline int hash(const char *str) { int h = seed++; int i = 12; while (i--) h += (h << 3) ^ *str++; return h; } void f(const char *str, int *h) { int i = 6; while (i--) *h++ = hash(str); }