minix/tests/usr.bin/xlint/lint1/d_c99_nested_struct.c
Lionel Sambuc 0a6a1f1d05 NetBSD re-synchronization of the source tree
This brings our tree to NetBSD 7.0, as found on -current on the
10-10-2015.

This updates:
 - LLVM to 3.6.1
 - GCC to GCC 5.1
 - Replace minix/commands/zdump with usr.bin/zdump
 - external/bsd/libelf has moved to /external/bsd/elftoolchain/
 - Import ctwm
 - Drop sprintf from libminc

Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
2016-01-13 20:32:14 +01:00

26 lines
514 B
C

/* C99 nested struct init with named and non-named initializers */
typedef struct pthread_mutex_t {
unsigned int ptm_magic;
char ptm_errorcheck;
char ptm_pad1[3];
char ptm_interlock;
char ptm_pad2[3];
volatile void * ptm_owner;
void * volatile ptm_waiters;
unsigned int ptm_recursed;
void *ptm_spare2;
} pthread_mutex_t;
struct arc4random_global {
pthread_mutex_t lock;
} arc4random_global = {
.lock = { 0x33330003, 0, { 0, 0, 0 }, 0, { 0, 0, 0 }, ((void *)0), ((void *)0), 0, ((void *)0) },
};