blob: 5863174307444a79bd87737b3a9b39dd9a846270 [file] [log] [blame]
Tim Northover19ae1172013-08-12 12:51:05 +00001// RUN: %clang_cc1 -triple i386-apple-darwin9 %s -emit-llvm -o - | FileCheck -check-prefix CHECK-X32 %s
Anders Carlsson0e912752009-09-03 22:56:02 +00002// CHECK-X32: %union.command = type <{ i8*, [2 x i8] }>
3
Tim Northover19ae1172013-08-12 12:51:05 +00004// RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -emit-llvm -o - | FileCheck -check-prefix CHECK-X64 %s
Anders Carlsson0e912752009-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;