From 995a893afdae5710b2986824fbd82b07e1aa02ad Mon Sep 17 00:00:00 2001 From: Krystine Sherwin <93062060+KrystalDelusion@users.noreply.github.com> Date: Mon, 26 May 2025 12:16:58 +1200 Subject: [PATCH] Tests: Add svtypes/typedef_struct_global.ys --- tests/svtypes/typedef_struct_global.ys | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/svtypes/typedef_struct_global.ys diff --git a/tests/svtypes/typedef_struct_global.ys b/tests/svtypes/typedef_struct_global.ys new file mode 100644 index 000000000..0fed440e4 --- /dev/null +++ b/tests/svtypes/typedef_struct_global.ys @@ -0,0 +1,13 @@ +read_verilog -sv << EOF +typedef struct packed { + logic y; + logic x; +} Vec_2_B; + +module top; + + Vec_2_B two_dee; + wire foo = two_dee.x; + +endmodule +EOF