minix/external/bsd/llvm/dist/clang/test/CodeGen/2008-01-28-UnionSize.c
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

24 lines
492 B
C

// RUN: %clang_cc1 %s -emit-llvm -o -
// PR 1861
typedef unsigned char __u8;
typedef unsigned int __u32;
typedef unsigned short u16;
typedef __u32 __le32;
struct bcm43xx_plcp_hdr6 {
union {
__le32 data;
__u8 raw[6];
}
__attribute__((__packed__));
}
__attribute__((__packed__));
struct bcm43xx_txhdr {
union {
struct {
struct bcm43xx_plcp_hdr6 plcp;
};
};
}
__attribute__((__packed__));
static void bcm43xx_generate_rts(struct bcm43xx_txhdr *txhdr ) { }