Skip to content

Commit

Permalink
Fix the pr2966059 regression test.
Browse files Browse the repository at this point in the history
This test uses 'wire real' but specified the '-gno-xtypes' option.
This is because it named a variable 'wreal' which is a keyword when
that option is enabled.
  • Loading branch information
martinwhitaker committed Jan 28, 2024
1 parent 79c644f commit 6826dbb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions ivtest/vpi/pr2966059.v
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module top;
parameter sp = "\003";

real rlval;
wire real wreal;
wire real wrval;
reg [3:0] rval;
wire [3:0] wval;
assign wval = 2;
Expand All @@ -21,8 +21,8 @@ module top;

$check_number(rlval);
$check_number(rlval+1);
$check_number(wreal);
$check_number(wreal+1);
$check_number(wrval);
$check_number(wrval+1);
$check_number(rval);
$check_number(rval+1);
$check_number(wval);
Expand Down
2 changes: 1 addition & 1 deletion ivtest/vpi_gold/pr2966059.gold
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ vpi_get_value (rlval):
vpi_get_value (<N/A>):
format = 7
value = 0
vpi_get_value (wreal):
vpi_get_value (wrval):
format = 7
value = 0
vpi_get_value (<N/A>):
Expand Down
2 changes: 1 addition & 1 deletion ivtest/vpi_regress.list
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pr723 normal pr723.c pr723.log
pr1693971 normal pr1693971.c pr1693971.log
pr2048463 normal pr2048463.c pr2048463.log
pr2314742 normal pr2314742.c pr2314742.gold
pr2966059 normal,-gno-xtypes pr2966059.c pr2966059.gold
pr2966059 normal pr2966059.c pr2966059.gold
pr2971220 normal pr2971220.c pr2971220.gold
putp normal putp.c putp.log
putp2 normal putp2.c putp2.log
Expand Down

0 comments on commit 6826dbb

Please sign in to comment.