mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-07 03:24:31 +02:00
Add regression tests for some corner cases for handling comments in macros. Signed-off-by: Lars-Peter Clausen <[email protected]>
17 lines
329 B
Verilog
17 lines
329 B
Verilog
// Check that a '*' or '/' following a C-style comment is supported in a macro
|
|
|
|
`define x(a, b) a /* comment */ * b
|
|
`define y(a, b) a /* comment */ / b
|
|
|
|
module test;
|
|
|
|
initial begin
|
|
if (`x(2, 3) === 6 && `y(8, 2) === 4) begin
|
|
$display("PASSED");
|
|
end else begin
|
|
$display("FAILED");
|
|
end
|
|
end
|
|
|
|
endmodule
|