@@ -21,33 +21,33 @@ fn generator_test() -> impl Generator<Yield = i32, Return = ()> {
21
21
// FIXME: No way to reliably check the filename.
22
22
23
23
// CHECK-DAG: [[GEN_FN:!.*]] = !DINamespace(name: "generator_test"
24
- // CHECK-DAG: [[GEN:!.*]] = !DICompositeType(tag: DW_TAG_union_type, name: "generator-0", scope: [[GEN_FN]]
25
- // CHECK: {{!.*}} = !DIDerivedType(tag: DW_TAG_member, scope: [[GEN]],
24
+ // CHECK-DAG: [[GEN:!.*]] = !DICompositeType(tag: DW_TAG_union_type, name: "generator-0"
25
+ // CHECK: {{!.*}} = !DIDerivedType(tag: DW_TAG_member, name: "variant0", scope: [[GEN]],
26
26
// For brevity, we only check the struct name and members of the last variant.
27
27
// CHECK-SAME: file: [[FILE:![0-9]*]], line: 14,
28
28
// CHECK-NOT: flags: DIFlagArtificial
29
29
// CHECK-SAME: )
30
- // CHECK: {{!.*}} = !DIDerivedType(tag: DW_TAG_member, scope: [[GEN]],
30
+ // CHECK: {{!.*}} = !DIDerivedType(tag: DW_TAG_member, name: "variant1", scope: [[GEN]],
31
31
// CHECK-SAME: file: [[FILE]], line: 18,
32
32
// CHECK-NOT: flags: DIFlagArtificial
33
33
// CHECK-SAME: )
34
- // CHECK: {{!.*}} = !DIDerivedType(tag: DW_TAG_member, scope: [[GEN]],
34
+ // CHECK: {{!.*}} = !DIDerivedType(tag: DW_TAG_member, name: "variant2", scope: [[GEN]],
35
35
// CHECK-SAME: file: [[FILE]], line: 18,
36
36
// CHECK-NOT: flags: DIFlagArtificial
37
37
// CHECK-SAME: )
38
- // CHECK: {{!.*}} = !DIDerivedType(tag: DW_TAG_member, scope: [[GEN]],
38
+ // CHECK: {{!.*}} = !DIDerivedType(tag: DW_TAG_member, name: "variant3", scope: [[GEN]],
39
39
// CHECK-SAME: file: [[FILE]], line: 15,
40
40
// CHECK-NOT: flags: DIFlagArtificial
41
41
// CHECK-SAME: )
42
- // CHECK: {{!.*}} = !DIDerivedType(tag: DW_TAG_member, scope: [[GEN]],
42
+ // CHECK: {{!.*}} = !DIDerivedType(tag: DW_TAG_member, name: "variant4", scope: [[GEN]],
43
43
// CHECK-SAME: file: [[FILE]], line: 17,
44
44
// CHECK-SAME: baseType: [[VARIANT:![0-9]*]]
45
45
// CHECK-NOT: flags: DIFlagArtificial
46
46
// CHECK-SAME: )
47
- // CHECK: [[S1:!.*]] = !DICompositeType(tag: DW_TAG_structure_type, name: "Suspend1", scope: [[GEN_FN ]],
47
+ // CHECK: [[S1:!.*]] = !DICompositeType(tag: DW_TAG_structure_type, name: "Suspend1", scope: [[GEN ]],
48
48
// CHECK-NOT: flags: DIFlagArtificial
49
49
// CHECK-SAME: )
50
- // CHECK: {{!.*}} = !DIDerivedType(tag: DW_TAG_member, name: "RUST$ENUM$DISR ", scope: [[S1]],
50
+ // CHECK: {{!.*}} = !DIDerivedType(tag: DW_TAG_member, name: "variant$ ", scope: [[S1]],
51
51
// CHECK-SAME: flags: DIFlagArtificial
52
52
// CHECK: {{!.*}} = !DIDerivedType(tag: DW_TAG_member, name: "s", scope: [[S1]]
53
53
// CHECK-NOT: flags: DIFlagArtificial
0 commit comments