Add test for two EOL comments in KDPIImportItem Signed-off-by: Mateusz Sierszulski <msierszulski@antmicro.com>
diff --git a/verilog/formatting/formatter_test.cc b/verilog/formatting/formatter_test.cc index e617479..db37607 100644 --- a/verilog/formatting/formatter_test.cc +++ b/verilog/formatting/formatter_test.cc
@@ -3411,6 +3411,20 @@ " );\n" "endmodule\n", }, + {// Two consecutive EOL comments in kDPIImportItem + "import \"DPI-C\" context function void foo(\n" + " input bit first,\n" + " // c3\n" + " // c3+\n" + " input bit second\n" + ");\n", + "import \"DPI-C\" context\n" + " function void foo(\n" + " input bit first,\n" + " // c3\n" + " // c3+\n" + " input bit second\n" + ");\n"}, {"import \"DPI-C\" context function void func(input bit impl_i," "input bit op_i," "input bit [5:0] mode_i,"