mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			287 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			287 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract c {
 | 
						|
    uint256[] data;
 | 
						|
 | 
						|
    function test() public returns (uint256 x, uint256 l) {
 | 
						|
        data.push(7);
 | 
						|
        data.push(3);
 | 
						|
        x = data.length;
 | 
						|
        data.pop();
 | 
						|
        x = data.length;
 | 
						|
        data.pop();
 | 
						|
        l = data.length;
 | 
						|
    }
 | 
						|
}
 | 
						|
// ----
 | 
						|
// test() -> 1, 0
 |