test: add attribute-before-stmt test from @nakengelhardt

This commit is contained in:
Eddie Hung 2020-05-14 16:32:14 -07:00
parent 1c117ac023
commit 95dcd7e785
1 changed files with 15 additions and 0 deletions

View File

@ -41,3 +41,18 @@ module test ();
endmodule
EOT
select -assert-none a:*
design -reset
read_verilog <<EOT
module test ();
localparam y = 1;
reg x = 1'b0;
always @(*) begin
if (y)
(* foo *) x <= 1'b1;
else
(* bar *) x = 1'b0;
end
endmodule
EOT