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