1651f13cea278ec967336033dd032faef0e9fc2ecStephen Hines// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck %s 2d0eb3b93e89f0ab83a2305eb0ec42076f8d46142Anders Carlsson 3d0eb3b93e89f0ab83a2305eb0ec42076f8d46142Anders Carlssontypedef struct _attrs { 4d0eb3b93e89f0ab83a2305eb0ec42076f8d46142Anders Carlsson unsigned file_attributes; 5d0eb3b93e89f0ab83a2305eb0ec42076f8d46142Anders Carlsson unsigned char filename_length; 6d0eb3b93e89f0ab83a2305eb0ec42076f8d46142Anders Carlsson} __attribute__((__packed__)) attrs; 7d0eb3b93e89f0ab83a2305eb0ec42076f8d46142Anders Carlsson 8651f13cea278ec967336033dd032faef0e9fc2ecStephen Hines// CHECK: %union._attr_union = type <{ i32, i8 }> 9d0eb3b93e89f0ab83a2305eb0ec42076f8d46142Anders Carlssontypedef union _attr_union { 10d0eb3b93e89f0ab83a2305eb0ec42076f8d46142Anders Carlsson attrs file_attrs; 11d0eb3b93e89f0ab83a2305eb0ec42076f8d46142Anders Carlsson unsigned owner_id; 12d0eb3b93e89f0ab83a2305eb0ec42076f8d46142Anders Carlsson} __attribute__((__packed__)) attr_union; 13d0eb3b93e89f0ab83a2305eb0ec42076f8d46142Anders Carlsson 14d0eb3b93e89f0ab83a2305eb0ec42076f8d46142Anders Carlssonattr_union u; 15d0eb3b93e89f0ab83a2305eb0ec42076f8d46142Anders Carlsson 16