mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			404 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			404 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    function test() public returns (uint256) {
 | 
						|
        // Note that this only works because computation on literals is done using
 | 
						|
        // unbounded integers.
 | 
						|
        if ((2**255 + 2**255) % 7 != addmod(2**255, 2**255, 7)) return 1;
 | 
						|
        if ((2**255 + 2**255) % 7 != addmod(2**255, 2**255, 7)) return 2;
 | 
						|
        return 0;
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
// ====
 | 
						|
// compileToEwasm: also
 | 
						|
// ----
 | 
						|
// test() -> 0
 |