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();