- This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
20 lines
610 B
C
20 lines
610 B
C
// RUN: %clang_cc1 -triple i386-apple-darwin9 %s -emit-llvm -o - | FileCheck -check-prefix X32 %s
|
|
// CHECK-X32: %struct.menu = type <{ i8*, i8, i8 }>
|
|
// CHECK-X32: %union.command = type <{ i8*, [2 x i8] }>
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -emit-llvm -o - | FileCheck -check-prefix X64 %s
|
|
// CHECK-X64: %struct.menu = type <{ i8*, i8, i8 }>
|
|
// CHECK-X64: %union.command = type <{ i8*, [2 x i8] }>
|
|
|
|
// <rdar://problem/7184250>
|
|
#pragma pack(push, 2)
|
|
typedef union command {
|
|
void *windowRef;
|
|
struct menu {
|
|
void *menuRef;
|
|
unsigned char menuItemIndex;
|
|
} menu;
|
|
} command;
|
|
|
|
command c;
|