mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Standard compliance for tests/verilog/block_labels.ys
genvar declaration cannot take an initial value when declared as a module_or_generate_item_declaration. Correct this test so that it doesn't fail unexpectedly if Yosys aligns with the standard.
This commit is contained in:
		
							parent
							
								
									147cceb516
								
							
						
					
					
						commit
						e7156c644d
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -1,7 +1,7 @@ | ||||||
| read_verilog <<EOT | read_verilog <<EOT | ||||||
| module foo; | module foo; | ||||||
| 
 | 
 | ||||||
| 	genvar a = 0; | 	genvar a; | ||||||
| 	for (a = 0; a < 10; a++) begin : a | 	for (a = 0; a < 10; a++) begin : a | ||||||
| 	end : a | 	end : a | ||||||
| endmodule | endmodule | ||||||
|  | @ -9,7 +9,7 @@ EOT | ||||||
| read_verilog <<EOT | read_verilog <<EOT | ||||||
| module foo2; | module foo2; | ||||||
| 
 | 
 | ||||||
| 	genvar a = 0; | 	genvar a; | ||||||
| 	for (a = 0; a < 10; a++) begin : a | 	for (a = 0; a < 10; a++) begin : a | ||||||
| 	end | 	end | ||||||
| endmodule | endmodule | ||||||
|  | @ -19,7 +19,7 @@ logger -expect error "Begin label \(a\) and end label \(b\) don't match\." 1 | ||||||
| read_verilog <<EOT | read_verilog <<EOT | ||||||
| module foo3; | module foo3; | ||||||
| 
 | 
 | ||||||
| 	genvar a = 0; | 	genvar a; | ||||||
| 	for (a = 0; a < 10; a++) begin : a | 	for (a = 0; a < 10; a++) begin : a | ||||||
| 	end : b | 	end : b | ||||||
| endmodule | endmodule | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue