mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			298 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			298 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
// This tests that the compiler knows the correct size of the function on the stack.
 | 
						|
contract c {
 | 
						|
    bytes data;
 | 
						|
 | 
						|
    function test() public returns (uint256 x) {
 | 
						|
        x = 2;
 | 
						|
        data.pop;
 | 
						|
        x = 3;
 | 
						|
    }
 | 
						|
}
 | 
						|
// ====
 | 
						|
// compileToEwasm: also
 | 
						|
// compileViaYul: also
 | 
						|
// ----
 | 
						|
// test() -> 3
 |