2021-02-04 05:12:59 -06:00
|
|
|
read_verilog <<EOT
|
|
|
|
module foo;
|
|
|
|
|
2023-05-18 08:46:25 -05:00
|
|
|
genvar a;
|
2021-02-04 05:12:59 -06:00
|
|
|
for (a = 0; a < 10; a++) begin : a
|
|
|
|
end : a
|
|
|
|
endmodule
|
|
|
|
EOT
|
|
|
|
read_verilog <<EOT
|
|
|
|
module foo2;
|
|
|
|
|
2023-05-18 08:46:25 -05:00
|
|
|
genvar a;
|
2021-02-04 05:12:59 -06:00
|
|
|
for (a = 0; a < 10; a++) begin : a
|
|
|
|
end
|
|
|
|
endmodule
|
|
|
|
EOT
|
|
|
|
|
|
|
|
logger -expect error "Begin label \(a\) and end label \(b\) don't match\." 1
|
|
|
|
read_verilog <<EOT
|
|
|
|
module foo3;
|
|
|
|
|
2023-05-18 08:46:25 -05:00
|
|
|
genvar a;
|
2021-02-04 05:12:59 -06:00
|
|
|
for (a = 0; a < 10; a++) begin : a
|
|
|
|
end : b
|
|
|
|
endmodule
|
|
|
|
EOT
|