aboutsummaryrefslogtreecommitdiffstats
path: root/tests/verilog
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-05-11 09:33:11 -0700
committerEddie Hung <eddie@fpgeh.com>2020-05-25 07:36:53 -0700
commit589775538c23975d79aa21050557a37b76acb1dd (patch)
treeb40a5a82778a76eb0f52439e6c5175a7cd274628 /tests/verilog
parentae11156c90eec958cd9ab631a28c41eccc105e56 (diff)
downloadyosys-589775538c23975d79aa21050557a37b76acb1dd.tar.gz
yosys-589775538c23975d79aa21050557a37b76acb1dd.tar.bz2
yosys-589775538c23975d79aa21050557a37b76acb1dd.zip
tests: add #2037 testcase
Diffstat (limited to 'tests/verilog')
-rw-r--r--tests/verilog/bug2037.ys9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/verilog/bug2037.ys b/tests/verilog/bug2037.ys
new file mode 100644
index 000000000..afe92022e
--- /dev/null
+++ b/tests/verilog/bug2037.ys
@@ -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