Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr42916.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +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); }