blob: 0aeed008b752e04f611450f599d9a1537186cc1e [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
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00003// RUN: grep "struct._attrs = type <{ i32, i8 }>" %t
Anders Carlssond0eb3b92009-09-02 17:51:33 +00004typedef struct _attrs {
5 unsigned file_attributes;
6 unsigned char filename_length;
7} __attribute__((__packed__)) attrs;
8
9// RUN: grep "union._attr_union = type <{ i32, i8 }>" %t
10typedef union _attr_union {
11 attrs file_attrs;
12 unsigned owner_id;
13} __attribute__((__packed__)) attr_union;
14
15attr_union u;
16