Files
sv2v/test/error/interface_bad_expr_genvar.sv

10 lines
321 B
Systemverilog
Raw Permalink Normal View History

2021-07-23 19:59:26 -04:00
// pattern: inlining instance "intf" of interface "Interface" would make expression "x" used in "intf" resolvable when it wasn't previously
2021-10-07 21:06:45 -06:00
// location: interface_bad_expr_genvar.sv:4:5
2021-07-23 19:59:26 -04:00
interface Interface;
assign x = 1;
endinterface
module top;
for (genvar x = 0; x < 2; x++)
Interface intf();
endmodule