Fix testplusargs false width warning, bug1165.
This commit is contained in:
parent
7fb29621c3
commit
6b04901c4d
|
|
@ -2096,7 +2096,7 @@ private:
|
|||
if (m_vup->prelim()) {
|
||||
userIterateAndNext(nodep->searchp(), WidthVP(SELF,BOTH).p());
|
||||
userIterateAndNext(nodep->outp(), WidthVP(SELF,BOTH).p());
|
||||
nodep->dtypeSetSigned32(); // Spec says integer return
|
||||
nodep->dtypeChgWidthSigned(32,1,AstNumeric::SIGNED); // Spec says integer return
|
||||
}
|
||||
}
|
||||
virtual void visit(AstUCStmt* nodep) {
|
||||
|
|
|
|||
|
|
@ -22,13 +22,17 @@ module t;
|
|||
if ($value$plusargs("NOTTHERE%d", p_i)!==0) $stop;
|
||||
if (p_i !== 10) $stop;
|
||||
|
||||
p_i = 0;
|
||||
if ($value$plusargs("INT=%d", p_i)!==1) $stop;
|
||||
if (p_i !== 32'd1234) $stop;
|
||||
|
||||
p_i = 0;
|
||||
if ($value$plusargs("INT=%H", p_i)!==1) $stop; // tests uppercase % also
|
||||
if (p_i !== 32'h1234) $stop;
|
||||
|
||||
if ($value$plusargs("INT=%o", p_i)!==1) $stop;
|
||||
p_i = 0;
|
||||
// Check octal and WIDTH
|
||||
if (!$value$plusargs("INT=%o", p_i)) $stop;
|
||||
if (p_i !== 32'o1234) $stop;
|
||||
|
||||
p_str = "none";
|
||||
|
|
|
|||
Loading…
Reference in New Issue