xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/ivar-layout-64-bitfields.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
2*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambuc#ifdef __cplusplus
5*f4a2713aSLionel Sambuctypedef bool _Bool;
6*f4a2713aSLionel Sambuc#endif
7*f4a2713aSLionel Sambuc
8*f4a2713aSLionel Sambuc@interface I
9*f4a2713aSLionel Sambuc{
10*f4a2713aSLionel Sambuc  struct {
11*f4a2713aSLionel Sambuc    unsigned int d : 1;
12*f4a2713aSLionel Sambuc  } bitfield;
13*f4a2713aSLionel Sambuc}
14*f4a2713aSLionel Sambuc@end
15*f4a2713aSLionel Sambuc
16*f4a2713aSLionel Sambuc@implementation I
17*f4a2713aSLionel Sambuc@end
18*f4a2713aSLionel Sambuc
19*f4a2713aSLionel Sambuc@interface J
20*f4a2713aSLionel Sambuc{
21*f4a2713aSLionel Sambuc    struct {
22*f4a2713aSLionel Sambuc        unsigned short _reserved : 16;
23*f4a2713aSLionel Sambuc
24*f4a2713aSLionel Sambuc        _Bool _draggedNodesAreDeletable: 1;
25*f4a2713aSLionel Sambuc        _Bool _draggedOutsideOutlineView : 1;
26*f4a2713aSLionel Sambuc        _Bool _adapterRespondsTo_addRootPaths : 1;
27*f4a2713aSLionel Sambuc        _Bool _adapterRespondsTo_moveDataNodes : 1;
28*f4a2713aSLionel Sambuc        _Bool _adapterRespondsTo_removeRootDataNode : 1;
29*f4a2713aSLionel Sambuc        _Bool _adapterRespondsTo_doubleClickDataNode : 1;
30*f4a2713aSLionel Sambuc        _Bool _adapterRespondsTo_selectDataNode : 1;
31*f4a2713aSLionel Sambuc        _Bool _adapterRespondsTo_textDidEndEditing : 1;
32*f4a2713aSLionel Sambuc
33*f4a2713aSLionel Sambuc        _Bool _adapterRespondsTo_updateAndSaveRoots : 1;
34*f4a2713aSLionel Sambuc        _Bool _adapterRespondsTo_askToDeleteRootNodes : 1;
35*f4a2713aSLionel Sambuc        _Bool _adapterRespondsTo_contextMenuForSelectedNodes : 1;
36*f4a2713aSLionel Sambuc        _Bool _adapterRespondsTo_pasteboardFilenamesForNodes : 1;
37*f4a2713aSLionel Sambuc        _Bool _adapterRespondsTo_writeItemsToPasteboard : 1;
38*f4a2713aSLionel Sambuc        _Bool _adapterRespondsTo_writeItemsToPasteboardXXXX : 1;
39*f4a2713aSLionel Sambuc    } _flags;
40*f4a2713aSLionel Sambuc}
41*f4a2713aSLionel Sambuc@end
42*f4a2713aSLionel Sambuc
43*f4a2713aSLionel Sambuc@implementation J
44*f4a2713aSLionel Sambuc@end
45*f4a2713aSLionel Sambuc
46*f4a2713aSLionel Sambuc
47