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