1
Fork 0

Adapt debug-accessibility tests for msvc-style enums

This commit is contained in:
Wesley Wiser 2023-12-13 11:46:28 -06:00 committed by David Wood
parent 07931c5a08
commit ce290514df
No known key found for this signature in database
4 changed files with 12 additions and 4 deletions

View file

@ -1,4 +1,5 @@
// compile-flags: -C debuginfo=2
// ignore-tidy-linelength
#![allow(dead_code)]
@ -12,7 +13,8 @@ pub enum PublicFooEnum {
C { x: u32 },
}
// CHECK: {{!.*}} = !DICompositeType(tag: DW_TAG_structure_type, name: "PublicFooEnum"{{.*}}flags: DIFlagPublic{{.*}})
// NONMSVC: {{!.*}} = !DICompositeType(tag: DW_TAG_structure_type, name: "PublicFooEnum"{{.*}}flags: DIFlagPublic{{.*}})
// MSVC: {{!.*}} = !DICompositeType(tag: DW_TAG_union_type, name: "enum2$<public_enum::PublicFooEnum>"{{.*}}flags: DIFlagPublic{{.*}})
fn main() {
black_box(PublicFooEnum::A);