| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O3" } */ |
| 3 |
|
| 4 |
typedef struct { int v; } S1; |
| 5 |
typedef struct { S1 s1[32]; } S2; |
| 6 |
|
| 7 |
S1 clearS1() { S1 s; s.v = 1; return s; } |
| 8 |
|
| 9 |
void |
| 10 |
clearS2(__seg_gs S2 *p, int n) |
| 11 |
{ |
| 12 |
for (int i = 0; i < n; ++i) |
| 13 |
p->s1[i] = clearS1(); |
| 14 |
} |