mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			355 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			355 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    uint16 x = 0x1234;
 | 
						|
    uint16 a = 0xffff;
 | 
						|
    uint16 b;
 | 
						|
 | 
						|
    function f() public returns (uint256, uint256, uint256, uint256) {
 | 
						|
        unchecked { a++; }
 | 
						|
        uint256 c = b;
 | 
						|
        delete b;
 | 
						|
        unchecked { a -= 2; }
 | 
						|
        return (x, c, b, a);
 | 
						|
    }
 | 
						|
}
 | 
						|
// ====
 | 
						|
// compileToEwasm: also
 | 
						|
// ----
 | 
						|
// f() -> 0x1234, 0x0, 0x0, 0xfffe
 |