about summary refs log tree commit diff
path: root/tests/codegen/debug-accessibility/private-enum.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-07-21 14:34:12 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-07-22 14:28:48 +0200
commita27f3e3fd1e4d16160f8885b6b06665b5319f56c (patch)
treeb033935392cbadf6f85d2dbddf433a88e323aeeb /tests/codegen/debug-accessibility/private-enum.rs
parented93c1783b404d728d4809973a0550eb33cd293f (diff)
downloadrust-a27f3e3fd1e4d16160f8885b6b06665b5319f56c.tar.gz
rust-a27f3e3fd1e4d16160f8885b6b06665b5319f56c.zip
Rename `tests/codegen` into `tests/codegen-llvm`
Diffstat (limited to 'tests/codegen/debug-accessibility/private-enum.rs')
-rw-r--r--tests/codegen/debug-accessibility/private-enum.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/codegen/debug-accessibility/private-enum.rs b/tests/codegen/debug-accessibility/private-enum.rs
deleted file mode 100644
index 002336c03b3..00000000000
--- a/tests/codegen/debug-accessibility/private-enum.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-// ignore-tidy-linelength
-//! Checks that visibility information is present in the debuginfo for private enums.
-
-//@ revisions: MSVC NONMSVC
-//@[MSVC] only-msvc
-//@[NONMSVC] ignore-msvc
-//@ compile-flags: -C debuginfo=2
-
-use std::hint::black_box;
-
-enum PrivateFooEnum {
-    A,
-    B(u32),
-    C { x: u32 },
-}
-
-// NONMSVC: {{!.*}} = !DICompositeType(tag: DW_TAG_structure_type, name: "PrivateFooEnum"{{.*}}flags: DIFlagPrivate{{.*}})
-// MSVC: {{!.*}} = !DICompositeType(tag: DW_TAG_union_type, name: "enum2$<private_enum::PrivateFooEnum>"{{.*}}flags: DIFlagPrivate{{.*}})
-
-fn main() {
-    black_box(PrivateFooEnum::A);
-}