aboutsummaryrefslogtreecommitdiffstats
path: root/tests/various/bug1745.ys
diff options
context:
space:
mode:
Diffstat (limited to 'tests/various/bug1745.ys')
-rw-r--r--tests/various/bug1745.ys8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/various/bug1745.ys b/tests/various/bug1745.ys
new file mode 100644
index 000000000..2e5b8c2d4
--- /dev/null
+++ b/tests/various/bug1745.ys
@@ -0,0 +1,8 @@
+logger -expect error "syntax error, unexpected TOK_CONSTVAL" 1
+read_verilog <<EOT
+module inverter(input a, output y);
+
+ assign y = (a == 1'b0? 1'b1 : 1'b0);
+
+endmodule // inverter
+EOT