[RISCV][FMV] Support target_clones (#85786)
[llvm-project.git] / clang / test / CodeGenObjC / debug-info-ivars.m
blobdc253b2c58abfcfcb03cc880c795a71794d5f7ac
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
3 __attribute((objc_root_class)) @interface NSObject {
4     id isa;
6 @end
8 @interface BaseClass : NSObject
10     int i;
11     unsigned flag_1 : 9;
12     unsigned flag_2 : 9;
13     unsigned : 1;
14     unsigned flag_3 : 9;
16 @end
18 @implementation BaseClass
19 @end
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 | DIFlagBitField
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 | DIFlagBitField
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 | DIFlagBitField