mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			405 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			405 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract c {
 | 
						|
    uint80[] x;
 | 
						|
 | 
						|
    function test() public returns (uint80, uint80, uint80, uint80) {
 | 
						|
        x.push(1);
 | 
						|
        x.push(2);
 | 
						|
        x.push(3);
 | 
						|
        x.push(4);
 | 
						|
        x.push(5);
 | 
						|
        x.pop();
 | 
						|
        return (x[0], x[1], x[2], x[3]);
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
// ====
 | 
						|
// compileViaYul: also
 | 
						|
// ----
 | 
						|
// test() -> 1, 2, 3, 4
 | 
						|
// gas irOptimized: 112751
 | 
						|
// gas legacy: 107098
 | 
						|
// gas legacyOptimized: 106362
 |