Files
iverilog/ivtest/ivltests/macro_comment_multiline.v
T
Lars-Peter Clausen 8187bf58f7 Add regression test for macros with multi-line comments
Check that multi-line comments are supported in macros.

Signed-off-by: Lars-Peter Clausen <[email protected]>
2022-12-26 16:12:01 -08:00

24 lines
493 B
Verilog

// Check that multi-line comments in macros are supported. Including some corner
// cases like another comment start in the comment.
`define test(a, b, c) \
(a + /* these is some \
multi line */ b /* comment \
that goes on \
and on */ ) /* and some more \
\
// and even has a comments \
/* in the comment */ * c
module test;
initial begin
if (`test(1, 2, 3) === 9) begin
$display("PASSED");
end else begin
$display("FAILED");
end
end
endmodule