d_c99_nested_struct.c revision 1.1 1 1.1 christos /* C99 nested struct init with named and non-named initializers */
2 1.1 christos typedef struct pthread_mutex_t {
3 1.1 christos unsigned int ptm_magic;
4 1.1 christos char ptm_errorcheck;
5 1.1 christos
6 1.1 christos char ptm_pad1[3];
7 1.1 christos
8 1.1 christos char ptm_interlock;
9 1.1 christos
10 1.1 christos char ptm_pad2[3];
11 1.1 christos
12 1.1 christos volatile void * ptm_owner;
13 1.1 christos void * volatile ptm_waiters;
14 1.1 christos unsigned int ptm_recursed;
15 1.1 christos void *ptm_spare2;
16 1.1 christos } pthread_mutex_t;
17 1.1 christos
18 1.1 christos
19 1.1 christos struct arc4random_global {
20 1.1 christos
21 1.1 christos pthread_mutex_t lock;
22 1.1 christos } arc4random_global = {
23 1.1 christos
24 1.1 christos .lock = { 0x33330003, 0, { 0, 0, 0 }, 0, { 0, 0, 0 }, ((void *)0), ((void *)0), 0, ((void *)0) },
25 1.1 christos };
26