verilog: add test
authorEddie Hung <eddie@fpgeh.com>
Wed, 11 Mar 2020 13:51:03 +0000 (06:51 -0700)
committerEddie Hung <eddie@fpgeh.com>
Wed, 11 Mar 2020 13:51:03 +0000 (06:51 -0700)
tests/various/src.ys [new file with mode: 0644]

diff --git a/tests/various/src.ys b/tests/various/src.ys
new file mode 100644 (file)
index 0000000..89d6700
--- /dev/null
@@ -0,0 +1,8 @@
+logger -expect warning "wire '\\o' is assigned in a block at <<EOT:2.11-2.17" 1
+logger -expect warning "wire '\\p' is assigned in a block at <<EOT:3.11-3.16" 1
+read_verilog <<EOT
+module top(input i, output o, p);
+always @* o <= i;
+always @* p = i;
+endmodule
+EOT