blob: 31ce6144078180660c4f5b32d0664bbb62a3d9a6 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm %s -o %t
Anders Carlssond0eb3b92009-09-02 17:51:33 +00002
Anders Carlssond0eb3b92009-09-02 17:51:33 +00003typedef struct _attrs {
4 unsigned file_attributes;
5 unsigned char filename_length;
6} __attribute__((__packed__)) attrs;
7
8// RUN: grep "union._attr_union = type <{ i32, i8 }>" %t
9typedef union _attr_union {
10 attrs file_attrs;
11 unsigned owner_id;
12} __attribute__((__packed__)) attr_union;
13
14attr_union u;
15