blob: b9166ae5d3908aa390e5ee209963f348a6202b1b [file] [log] [blame]
Anders Carlsson36620002009-09-03 22:56:02 +00001// RUN: clang-cc -triple i386-apple-darwin9 %s -emit-llvm -o - | FileCheck -check-prefix X32 %s &&
2// CHECK-X32: %struct.menu = type <{ i8*, i8, i8 }>
3// CHECK-X32: %union.command = type <{ i8*, [2 x i8] }>
4
5// RUN: clang-cc -triple x86_64-apple-darwin9 %s -emit-llvm -o - | FileCheck -check-prefix X64 %s
6// 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;