gcc/testsuite/gcc.c-torture/compile/zero-strct-4.c
raw| 1 | typedef struct {} raw_spinlock_t; |
| 2 | typedef struct { |
| 3 | raw_spinlock_t raw_lock; |
| 4 | } spinlock_t; |
| 5 | struct sk_buff_head { |
| 6 | int i; |
| 7 | spinlock_t lock; |
| 8 | }; |
| 9 | struct sk_buff_head audit_skb_queue; |
| 10 | void audit_init(void) |
| 11 | { |
| 12 | struct sk_buff_head *list = &audit_skb_queue; |
| 13 | audit_skb_queue.lock = (spinlock_t) { .raw_lock = { } }; |
| 14 | } |