diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-07-23 14:59:10 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2025-07-23 14:59:10 +0200 |
| commit | 67f73c75477338560fb78003149c11a9fa7d4820 (patch) | |
| tree | 7792f3f9786658de9949e9c27ac4dfb8c63fdb8d /tests/codegen/debug-accessibility/struct-fields.rs | |
| parent | a343926954a525f491756c3c9714417ae9ccc121 (diff) | |
| parent | 0b88bea0d5169af3b3f9326274bda8b9c4a31823 (diff) | |
| download | rust-67f73c75477338560fb78003149c11a9fa7d4820.tar.gz rust-67f73c75477338560fb78003149c11a9fa7d4820.zip | |
Merge ref '5a30e4307f05' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: 5a30e4307f0506bed87eeecd171f8366fdbda1dc Filtered ref: 59749e9f8c765d3021796a9fe0c188643c4b8d77 This merge was created using https://github.com/rust-lang/josh-sync.
Diffstat (limited to 'tests/codegen/debug-accessibility/struct-fields.rs')
| -rw-r--r-- | tests/codegen/debug-accessibility/struct-fields.rs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/codegen/debug-accessibility/struct-fields.rs b/tests/codegen/debug-accessibility/struct-fields.rs deleted file mode 100644 index f68bb3438be..00000000000 --- a/tests/codegen/debug-accessibility/struct-fields.rs +++ /dev/null @@ -1,30 +0,0 @@ -//@ compile-flags: -C debuginfo=2 - -#![allow(dead_code)] - -// Checks that visibility information is present in the debuginfo for struct fields. - -mod module { - use std::hint::black_box; - - struct StructFields { - a: u32, - pub(crate) b: u32, - pub(super) c: u32, - pub d: u32, - } - - // CHECK: [[StructFields:!.*]] = !DICompositeType(tag: DW_TAG_structure_type, name: "StructFields"{{.*}}flags: DIFlagPrivate{{.*}}) - // CHECK: {{!.*}} = !DIDerivedType(tag: DW_TAG_member, name: "a", scope: [[StructFields]]{{.*}}flags: DIFlagPrivate{{.*}}) - // CHECK: {{!.*}} = !DIDerivedType(tag: DW_TAG_member, name: "b", scope: [[StructFields]]{{.*}}flags: DIFlagProtected{{.*}}) - // CHECK: {{!.*}} = !DIDerivedType(tag: DW_TAG_member, name: "c", scope: [[StructFields]]{{.*}}flags: DIFlagProtected{{.*}}) - // CHECK: {{!.*}} = !DIDerivedType(tag: DW_TAG_member, name: "d", scope: [[StructFields]]{{.*}}flags: DIFlagPublic{{.*}}) - - pub fn use_everything() { - black_box(StructFields { a: 1, b: 2, c: 3, d: 4 }); - } -} - -fn main() { - module::use_everything(); -} |
