File tree 4 files changed +12
-4
lines changed
tests/codegen/debug-accessibility
4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1
1
// compile-flags: -C debuginfo=2
2
+ // ignore-tidy-linelength
2
3
3
4
#![ allow( dead_code) ]
4
5
@@ -13,7 +14,8 @@ mod module {
13
14
C { x : u32 } ,
14
15
}
15
16
16
- // CHECK: {{!.*}} = !DICompositeType(tag: DW_TAG_structure_type, name: "CrateFooEnum"{{.*}}flags: DIFlagProtected{{.*}})
17
+ // NONMSVC: {{!.*}} = !DICompositeType(tag: DW_TAG_structure_type, name: "CrateFooEnum"{{.*}}flags: DIFlagProtected{{.*}})
18
+ // MSVC: {{!.*}} = !DICompositeType(tag: DW_TAG_union_type, name: "enum2$<crate_enum::module::CrateFooEnum>"{{.*}}flags: DIFlagProtected{{.*}})
17
19
pub fn use_everything ( ) {
18
20
black_box ( CrateFooEnum :: A ) ;
19
21
}
Original file line number Diff line number Diff line change 1
1
// compile-flags: -C debuginfo=2
2
+ // ignore-tidy-linelength
2
3
3
4
#![ allow( dead_code) ]
4
5
@@ -12,7 +13,8 @@ enum PrivateFooEnum {
12
13
C { x : u32 } ,
13
14
}
14
15
15
- // CHECK: {{!.*}} = !DICompositeType(tag: DW_TAG_structure_type, name: "PrivateFooEnum"{{.*}}flags: DIFlagPrivate{{.*}})
16
+ // NONMSVC: {{!.*}} = !DICompositeType(tag: DW_TAG_structure_type, name: "PrivateFooEnum"{{.*}}flags: DIFlagPrivate{{.*}})
17
+ // MSVC: {{!.*}} = !DICompositeType(tag: DW_TAG_union_type, name: "enum2$<private_enum::PrivateFooEnum>"{{.*}}flags: DIFlagPrivate{{.*}})
16
18
17
19
fn main ( ) {
18
20
black_box ( PrivateFooEnum :: A ) ;
Original file line number Diff line number Diff line change 1
1
// compile-flags: -C debuginfo=2
2
+ // ignore-tidy-linelength
2
3
3
4
#![ allow( dead_code) ]
4
5
@@ -12,7 +13,8 @@ pub enum PublicFooEnum {
12
13
C { x : u32 } ,
13
14
}
14
15
15
- // CHECK: {{!.*}} = !DICompositeType(tag: DW_TAG_structure_type, name: "PublicFooEnum"{{.*}}flags: DIFlagPublic{{.*}})
16
+ // NONMSVC: {{!.*}} = !DICompositeType(tag: DW_TAG_structure_type, name: "PublicFooEnum"{{.*}}flags: DIFlagPublic{{.*}})
17
+ // MSVC: {{!.*}} = !DICompositeType(tag: DW_TAG_union_type, name: "enum2$<public_enum::PublicFooEnum>"{{.*}}flags: DIFlagPublic{{.*}})
16
18
17
19
fn main ( ) {
18
20
black_box ( PublicFooEnum :: A ) ;
Original file line number Diff line number Diff line change 1
1
// compile-flags: -C debuginfo=2
2
+ // ignore-tidy-linelength
2
3
3
4
#![ allow( dead_code) ]
4
5
@@ -13,7 +14,8 @@ mod module {
13
14
C { x : u32 } ,
14
15
}
15
16
16
- // CHECK: {{!.*}} = !DICompositeType(tag: DW_TAG_structure_type, name: "SuperFooEnum"{{.*}}flags: DIFlagProtected{{.*}})
17
+ // NONMSVC: {{!.*}} = !DICompositeType(tag: DW_TAG_structure_type, name: "SuperFooEnum"{{.*}}flags: DIFlagProtected{{.*}})
18
+ // MSVC: {{!.*}} = !DICompositeType(tag: DW_TAG_union_type, name: "enum2$<super_enum::module::SuperFooEnum>"{{.*}}flags: DIFlagProtected{{.*}})
17
19
18
20
pub fn use_everything ( ) {
19
21
black_box ( SuperFooEnum :: A ) ;
You can’t perform that action at this time.
0 commit comments