Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -triple x86_64-apple-darwin10 -emit-llvm %s -o %t |
Anders Carlsson | d0eb3b9 | 2009-09-02 17:51:33 +0000 | [diff] [blame] | 2 | |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 3 | // RUN: grep "struct._attrs = type <{ i32, i8 }>" %t |
Anders Carlsson | d0eb3b9 | 2009-09-02 17:51:33 +0000 | [diff] [blame] | 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 | |