mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			245 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			245 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract Test {
 | |
|     function f(uint256 x) public returns (uint256) {
 | |
|         if (x > 10) return x + 10;
 | |
|         else revert();
 | |
|         return 2;
 | |
|     }
 | |
| }
 | |
| 
 | |
| // ====
 | |
| // compileViaYul: also
 | |
| // ----
 | |
| // f(uint256): 11 -> 21
 | |
| // f(uint256): 1 -> FAILURE
 |