| 1 |
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */ |
| 2 |
/* { dg-skip-if "" { powerpc*-*-darwin* } } */ |
| 3 |
/* { dg-options "-O3 -mdejagnu-cpu=power7 -fmerge-all-constants" } */ |
| 4 |
/* { dg-require-effective-target powerpc_vsx } */ |
| 5 |
|
| 6 |
struct locale_time_t |
| 7 |
{ |
| 8 |
const char *abday[7]; |
| 9 |
const unsigned int *wabday[7]; |
| 10 |
}; |
| 11 |
|
| 12 |
static const unsigned int empty_wstr[1] = { 0 }; |
| 13 |
|
| 14 |
void |
| 15 |
time_read (struct locale_time_t *time) |
| 16 |
{ |
| 17 |
int cnt; |
| 18 |
|
| 19 |
for (cnt=0; cnt < 7; cnt++) |
| 20 |
{ |
| 21 |
time->abday[cnt] = ""; |
| 22 |
time->wabday[cnt] = empty_wstr; |
| 23 |
} |
| 24 |
} |