tests: add #2037 testcase
authorEddie Hung <eddie@fpgeh.com>
Mon, 11 May 2020 16:33:11 +0000 (09:33 -0700)
committerEddie Hung <eddie@fpgeh.com>
Mon, 25 May 2020 14:36:53 +0000 (07:36 -0700)
tests/verilog/bug2037.ys [new file with mode: 0644]

diff --git a/tests/verilog/bug2037.ys b/tests/verilog/bug2037.ys
new file mode 100644 (file)
index 0000000..afe9202
--- /dev/null
@@ -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