From 9598ef9315b4c450faaf771f4e1e608a128edb59 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 1 Jul 2025 05:45:10 -0400 Subject: [PATCH] Internals: Avoid - in enum name --- src/V3Ast.h | 2 +- test_regress/t/t_randomize_method_with.v | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/V3Ast.h b/src/V3Ast.h index e7ae60bf6..20715688e 100644 --- a/src/V3Ast.h +++ b/src/V3Ast.h @@ -1737,7 +1737,7 @@ public: }; enum en m_e; const char* ascii() const { - static const char* const names[] = {"NONE", "RAND", "RANDC", "RAND-INLINE"}; + static const char* const names[] = {"NONE", "RAND", "RANDC", "RAND_INLINE"}; return names[m_e]; } VRandAttr() diff --git a/test_regress/t/t_randomize_method_with.v b/test_regress/t/t_randomize_method_with.v index d6436baf2..29c8bb2b9 100644 --- a/test_regress/t/t_randomize_method_with.v +++ b/test_regress/t/t_randomize_method_with.v @@ -89,12 +89,12 @@ function automatic int return_2(); endfunction class Cls; - rand int a; - rand int b; + rand int a; + rand int b; endclass class Cls2 extends Cls; - rand int c; + rand int c; endclass module mwith();