]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/pragma-pack-3.c
Vendor import of clang RELEASE_360/rc2 tag r227651 (effectively, 3.6.0 RC2):
[FreeBSD/FreeBSD.git] / test / CodeGen / pragma-pack-3.c
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;