Home | History | Annotate | Line # | Download | only in lint1
      1 /*	$NetBSD: d_c99_nested_struct.c,v 1.5 2023/03/28 14:44:34 rillig Exp $	*/
      2 # 3 "d_c99_nested_struct.c"
      3 
      4 /* lint1-extra-flags: -X 351 */
      5 
      6 /* C99 nested struct init with named and non-named initializers */
      7 typedef struct pthread_mutex_t {
      8 	unsigned int ptm_magic;
      9 	char ptm_errorcheck;
     10 
     11 	char ptm_pad1[3];
     12 
     13 	char ptm_interlock;
     14 
     15 	char ptm_pad2[3];
     16 
     17 	volatile void *ptm_owner;
     18 	void *volatile ptm_waiters;
     19 	unsigned int ptm_recursed;
     20 	void *ptm_spare2;
     21 } pthread_mutex_t;
     22 
     23 
     24 struct arc4random_global {
     25 	pthread_mutex_t lock;
     26 } arc4random_global = {
     27 	.lock = {
     28 		0x33330003,
     29 		0,
     30 		{ 0, 0, 0 },
     31 		0,
     32 		{ 0, 0, 0 },
     33 		((void *)0),
     34 		((void *)0),
     35 		0,
     36 		((void *)0)
     37 	},
     38 };
     39