Skip to content

Commit

Permalink
Verilog: KNOWNBUG for declarations inside a named block inside a func…
Browse files Browse the repository at this point in the history
…tion

Replicates #966.
  • Loading branch information
kroening committed Feb 6, 2025
1 parent 3579ca1 commit cf0e68b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions regression/verilog/functioncall/named_block1.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
KNOWNBUG
named_block1.sv

^\[.*\] always main\.foo\(\) == 123: PROVED$
^EXIT=0$
^SIGNAL=0$
--
^warning: ignoring
13 changes: 13 additions & 0 deletions regression/verilog/functioncall/named_block1.sv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module main;

function [31:0] foo;
begin : block_name
reg [31:0] x;
x = 123;
foo = x;
end
endfunction;

assert final (foo() == 123);

endmodule

0 comments on commit cf0e68b

Please sign in to comment.