1// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
2// 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
4#ifdef __cplusplus
5typedef bool _Bool;
6#endif
7
8@interface I
9{
10  struct {
11    unsigned int d : 1;
12  } bitfield;
13}
14@end
15
16@implementation I
17@end
18
19@interface J
20{
21    struct {
22        unsigned short _reserved : 16;
23
24        _Bool _draggedNodesAreDeletable: 1;
25        _Bool _draggedOutsideOutlineView : 1;
26        _Bool _adapterRespondsTo_addRootPaths : 1;
27        _Bool _adapterRespondsTo_moveDataNodes : 1;
28        _Bool _adapterRespondsTo_removeRootDataNode : 1;
29        _Bool _adapterRespondsTo_doubleClickDataNode : 1;
30        _Bool _adapterRespondsTo_selectDataNode : 1;
31        _Bool _adapterRespondsTo_textDidEndEditing : 1;
32
33        _Bool _adapterRespondsTo_updateAndSaveRoots : 1;
34        _Bool _adapterRespondsTo_askToDeleteRootNodes : 1;
35        _Bool _adapterRespondsTo_contextMenuForSelectedNodes : 1;
36        _Bool _adapterRespondsTo_pasteboardFilenamesForNodes : 1;
37        _Bool _adapterRespondsTo_writeItemsToPasteboard : 1;
38        _Bool _adapterRespondsTo_writeItemsToPasteboardXXXX : 1;
39    } _flags;
40}
41@end
42
43@implementation J
44@end
45
46
47