mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-01 10:28:48 +00:00
tests: add #2037 testcase
This commit is contained in:
parent
ae11156c90
commit
589775538c
1 changed files with 9 additions and 0 deletions
9
tests/verilog/bug2037.ys
Normal file
9
tests/verilog/bug2037.ys
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
logger -expect warning "Attribute\(s\) attached to null statement\. Ignoring\." 1
|
||||||
|
logger -expect-no-warnings
|
||||||
|
read_verilog <<EOT
|
||||||
|
module test ();
|
||||||
|
localparam y = 1;
|
||||||
|
always @(*)
|
||||||
|
if (y) (* foo *) ;
|
||||||
|
endmodule
|
||||||
|
EOT
|
Loading…
Add table
Add a link
Reference in a new issue