mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			470 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			470 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
	uint[] storageArray;
 | 
						|
	function set_get_length(uint256 len) public returns (uint256)
 | 
						|
	{
 | 
						|
		storageArray.length = len;
 | 
						|
		return storageArray.length;
 | 
						|
	}
 | 
						|
 | 
						|
}
 | 
						|
// ====
 | 
						|
// compileViaYul: true
 | 
						|
// ----
 | 
						|
// set_get_length(uint256): 0 -> 0
 | 
						|
// set_get_length(uint256): 1 -> 1
 | 
						|
// set_get_length(uint256): 10 -> 10
 | 
						|
// set_get_length(uint256): 20 -> 20
 | 
						|
// set_get_length(uint256): 0 -> 0
 | 
						|
// set_get_length(uint256): 0xFF -> 0xFF
 | 
						|
// set_get_length(uint256): 0xFFFF -> 0xFFFF
 |