blob: 04b636e9c774e891c7525171f9309e57e13a9d7d [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -triple i386-apple-darwin9 %s -emit-llvm -o - | FileCheck -check-prefix X32 %s
Anders Carlsson36620002009-09-03 22:56:02 +00002// CHECK-X32: %union.command = type <{ i8*, [2 x i8] }>
3
Daniel Dunbara5728872009-12-15 20:14:24 +00004// RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -emit-llvm -o - | FileCheck -check-prefix X64 %s
Anders Carlsson36620002009-09-03 22:56:02 +00005// CHECK-X64: %union.command = type <{ i8*, [2 x i8] }>
6
7// <rdar://problem/7184250>
8#pragma pack(push, 2)
9typedef union command {
10 void *windowRef;
11 struct menu {
12 void *menuRef;
13 unsigned char menuItemIndex;
14 } menu;
15} command;
16
17command c;