OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2010-02-19 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr42916.c
1
/* { dg-do compile } */
2
/* { dg-options "-O1 -funroll-loops -ftree-vectorize -fcompare-debug" } */
3
4
int seed;
5
6
static inline int hash(const char *str)
7
{
8
int h = seed++;
9
int i = 12;
10
while (i--)
11
h += (h << 3) ^ *str++;
12
return h;
13
}
14
15
void f(const char *str, int *h)
16
{
17
int i = 6;
18
while (i--)
19
*h++ = hash(str);
20
}