OSDN Git Service

2011-10-19 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / torture / pr34330.c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target pthread } */
3 /* { dg-options "-ftree-parallelize-loops=4 -ftree-vectorize" } */
4
5 struct T
6 {
7   int t;
8   struct { short s1, s2, s3, s4; } *s;
9 };
10
11 void
12 foo (int *a, int *b, int *c, int *d, struct T *e)
13 {
14   int i;
15   for (i = 0; i < e->t; i++)
16     {
17       e->s[i].s1 = a[i];
18       e->s[i].s2 = b[i];
19       e->s[i].s3 = c[i];
20       e->s[i].s4 = d[i];
21     }
22 }