Files
iverilog/ivtest/ivltests/macro_comment2.v
T
Lars-Peter Clausen 109b794253 Add regression tests for comments in macros
Add regression tests for some corner cases for handling comments in macros.

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

18 lines
350 B
Verilog

// Check that another comment directly 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) === 2 && `y(8, 2) === 8) begin
$display("PASSED");
end else begin
$display("FAILED");
end
end
endmodule