yosys/tests/various/sv_defines_dup.ys

6 lines
148 B
Plaintext

# Check for duplicate arguments
logger -expect error "Duplicate macro arguments with name `x'" 1
read_verilog <<EOT
`define duplicate_arg(x, x)
EOT