xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/pragma-pack-3.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple i386-apple-darwin9 %s -emit-llvm -o - | FileCheck -check-prefix CHECK-X32 %s
2*f4a2713aSLionel Sambuc // CHECK-X32: %union.command = type <{ i8*, [2 x i8] }>
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -emit-llvm -o - | FileCheck -check-prefix CHECK-X64 %s
5*f4a2713aSLionel Sambuc // CHECK-X64: %union.command = type <{ i8*, [2 x i8] }>
6*f4a2713aSLionel Sambuc 
7*f4a2713aSLionel Sambuc // <rdar://problem/7184250>
8*f4a2713aSLionel Sambuc #pragma pack(push, 2)
9*f4a2713aSLionel Sambuc typedef union command {
10*f4a2713aSLionel Sambuc   void *windowRef;
11*f4a2713aSLionel Sambuc   struct menu {
12*f4a2713aSLionel Sambuc     void *menuRef;
13*f4a2713aSLionel Sambuc     unsigned char menuItemIndex;
14*f4a2713aSLionel Sambuc   } menu;
15*f4a2713aSLionel Sambuc } command;
16*f4a2713aSLionel Sambuc 
17*f4a2713aSLionel Sambuc command c;
18