Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Nov 30, 2023
1 parent e0f9563 commit 1ee64fd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test_regress/t/t_do_while.v
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ module t (/*AUTOARG*/);
end while (a < 0);
if (a != 5) $stop;

a = 1;
do begin
do begin
int x = 1;
a += x;
end while (a < 3);
end while (a < 5);
if (a != 5) $stop;

$write("*-* All Finished *-*\n");
$finish;
end
Expand Down

0 comments on commit 1ee64fd

Please sign in to comment.