Anders Carlsson | 09a3774 | 2009-09-02 17:51:33 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -triple x86_64-apple-darwin10 -emit-llvm %s -o %t && |
2 | |||||
3 | // RUN: grep "struct._attrs = type <{ i32, i8 }>" %t && | ||||
4 | typedef 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 | ||||
10 | typedef union _attr_union { | ||||
11 | attrs file_attrs; | ||||
12 | unsigned owner_id; | ||||
13 | } __attribute__((__packed__)) attr_union; | ||||
14 | |||||
15 | attr_union u; | ||||
16 |