[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / CodeGen / packed-union.c
blob0aeed008b752e04f611450f599d9a1537186cc1e
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm %s -o %t
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;
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;
15 attr_union u;