Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -triple i386-apple-darwin9 %s -emit-llvm -o - | FileCheck -check-prefix X32 %s |
Anders Carlsson | 3662000 | 2009-09-03 22:56:02 +0000 | [diff] [blame] | 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) |
| 11 | typedef union command { |
| 12 | void *windowRef; |
| 13 | struct menu { |
| 14 | void *menuRef; |
| 15 | unsigned char menuItemIndex; |
| 16 | } menu; |
| 17 | } command; |
| 18 | |
| 19 | command c; |