Fix PR4948 (and a leak): by not destroying the DwarfException
[llvm/avr.git] / test / FrontendC / 2009-07-22-StructLayout.c
blob74904da33e0c56ca854ce928d5b4dfbdf0e98ead
1 // RUN: %llvmgcc %s -S -o /dev/null
2 // PR4590
4 typedef unsigned char __u8;
5 typedef unsigned int __le32;
6 typedef unsigned int __u32;
7 typedef unsigned short __le16;
8 typedef unsigned short __u16;
10 struct usb_cdc_ether_desc {
11 __u8 bLength;
12 __u8 bDescriptorType;
13 __u8 bDescriptorSubType;
15 __u8 iMACAddress;
16 __le32 bmEthernetStatistics;
17 __le16 wMaxSegmentSize;
18 __le16 wNumberMCFilters;
19 __u8 bNumberPowerFilters;
20 } __attribute__ ((packed));
23 static struct usb_cdc_ether_desc ecm_desc __attribute__ ((__section__(".init.data"))) = {
24 .bLength = sizeof ecm_desc,
25 .bDescriptorType = ((0x01 << 5) | 0x04),
26 .bDescriptorSubType = 0x0f,
30 .bmEthernetStatistics = (( __le32)(__u32)(0)),
31 .wMaxSegmentSize = (( __le16)(__u16)(1514)),
32 .wNumberMCFilters = (( __le16)(__u16)(0)),
33 .bNumberPowerFilters = 0,