Internals: Avoid - in enum name

This commit is contained in:
Wilson Snyder 2025-07-01 05:45:10 -04:00
parent cd0f35fe67
commit 9598ef9315
2 changed files with 4 additions and 4 deletions

View File

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

View File

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