Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr42916.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 "-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); }