diff options
author | Zachary Snow <zach@zachjs.com> | 2021-02-18 12:04:02 -0500 |
---|---|---|
committer | Zachary Snow <zach@zachjs.com> | 2021-02-19 09:18:41 -0500 |
commit | 220cb1f7bbf6405117b953526c50a21a5ef5788f (patch) | |
tree | c3fe7d79380e9bf2c73c56543f5461715e0a0395 /tests/verilog/macro_unapplied_newline.ys | |
parent | 127484e675538fbaeca1f6e53ba264a1f02e9cf6 (diff) | |
download | yosys-220cb1f7bbf6405117b953526c50a21a5ef5788f.tar.gz yosys-220cb1f7bbf6405117b953526c50a21a5ef5788f.tar.bz2 yosys-220cb1f7bbf6405117b953526c50a21a5ef5788f.zip |
verilog: error on macro invocations with missing argument lists
This would previously complain about an undefined internal macro if the
unapplied macro had not already been used. If it had, it would
incorrectly use the arguments from the previous invocation.
Diffstat (limited to 'tests/verilog/macro_unapplied_newline.ys')
-rw-r--r-- | tests/verilog/macro_unapplied_newline.ys | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/verilog/macro_unapplied_newline.ys b/tests/verilog/macro_unapplied_newline.ys new file mode 100644 index 000000000..a3f88d5b4 --- /dev/null +++ b/tests/verilog/macro_unapplied_newline.ys @@ -0,0 +1,5 @@ +logger -expect error "Expected to find '\(' to begin macro arguments for 'foo', but instead found '\\x0a'" 1 +read_verilog -sv <<EOT +`define foo(a=1) (a) +`foo +EOT |