1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
2
3__attribute((objc_root_class)) @interface NSObject {
4    id isa;
5}
6@end
7
8@interface BaseClass : NSObject
9{
10    int i;
11    unsigned flag_1 : 9;
12    unsigned flag_2 : 9;
13    unsigned : 1;
14    unsigned flag_3 : 9;
15}
16@end
17
18@implementation BaseClass
19@end
20
21// CHECK: !DIDerivedType(tag: DW_TAG_member, name: "i"
22// CHECK-SAME:           line: 10
23// CHECK-SAME:           baseType: ![[INT:[0-9]+]]
24// CHECK-SAME:           size: 32,
25// CHECK-NOT:            offset:
26// CHECK-SAME:           flags: DIFlagProtected
27// CHECK: ![[INT]] = !DIBasicType(name: "int"
28// CHECK: !DIDerivedType(tag: DW_TAG_member, name: "flag_1"
29// CHECK-SAME:           line: 11
30// CHECK-SAME:           baseType: ![[UNSIGNED:[0-9]+]]
31// CHECK-SAME:           size: 9,
32// CHECK-NOT:            offset:
33// CHECK-SAME:           flags: DIFlagProtected
34// CHECK: ![[UNSIGNED]] = !DIBasicType(name: "unsigned int"
35// CHECK: !DIDerivedType(tag: DW_TAG_member, name: "flag_2"
36// CHECK-SAME:           line: 12
37// CHECK-SAME:           baseType: ![[UNSIGNED]]
38// CHECK-SAME:           size: 9, offset: 1,
39// CHECK-SAME:           flags: DIFlagProtected
40// CHECK: !DIDerivedType(tag: DW_TAG_member, name: "flag_3"
41// CHECK-SAME:           line: 14
42// CHECK-SAME:           baseType: ![[UNSIGNED]]
43// CHECK-SAME:           size: 9, offset: 3,
44// CHECK-SAME:           flags: DIFlagProtected
45