blob: d11d3a490234e3c26fdb7646c96c3e9fd9016184 [file] [log] [blame]
Anders Carlsson09a37742009-09-02 17:51:33 +00001// RUN: clang-cc -triple x86_64-apple-darwin10 -emit-llvm %s -o %t &&
2
3// RUN: grep "struct._attrs = type <{ i32, i8 }>" %t &&
4typedef 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