summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/zero-strct-3.c
blob: 31bc328d06cab51ba7a02b5324c0d865669f6d50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
typedef struct {} spinlock_t;
struct sk_buff_head {
  int i;
  spinlock_t lock;
};
struct sk_buff_head audit_skb_queue;
void audit_init(void)
{
  struct sk_buff_head *list = &audit_skb_queue;
  spinlock_t a = {};
  audit_skb_queue.lock = a;
}