2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm %s -o %t
|
2009-09-03 01:51:33 +08:00
|
|
|
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep "struct._attrs = type <{ i32, i8 }>" %t
|
2009-09-03 01:51:33 +08:00
|
|
|
typedef struct _attrs {
|
|
|
|
unsigned file_attributes;
|
|
|
|
unsigned char filename_length;
|
|
|
|
} __attribute__((__packed__)) attrs;
|
|
|
|
|
|
|
|
// RUN: grep "union._attr_union = type <{ i32, i8 }>" %t
|
|
|
|
typedef union _attr_union {
|
|
|
|
attrs file_attrs;
|
|
|
|
unsigned owner_id;
|
|
|
|
} __attribute__((__packed__)) attr_union;
|
|
|
|
|
|
|
|
attr_union u;
|
|
|
|
|