mirror of https://github.com/YosysHQ/yosys.git
test: add attribute-before-stmt test from @nakengelhardt
This commit is contained in:
parent
1c117ac023
commit
95dcd7e785
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue