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
2009-05-28 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr27073.c
1
void __attribute__((noinline))
2
foo (int *p, int d1, int d2, int d3,
3
short count, int s1, int s2, int s3, int s4, int s5)
4
{
5
int n = count;
6
while (n--)
7
{
8
*p++ = s1;
9
*p++ = s2;
10
*p++ = s3;
11
*p++ = s4;
12
*p++ = s5;
13
}
14
}
15
16
int main()
17
{
18
int x[10], i;
19
20
foo (x, 0, 0, 0, 2, 100, 200, 300, 400, 500);
21
for (i = 0; i < 10; i++)
22
if (x[i] != (i % 5 + 1) * 100)
23
abort ();
24
exit (0);
25
}