mirror of
				https://github.com/ton-blockchain/ton
				synced 2025-03-09 15:40:10 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			262 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			262 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| int foo(int x) inline {
 | |
|   if (x < 0) {
 | |
|     x *= 2;
 | |
|     if (x == -10) {
 | |
|       return 111;
 | |
|     }
 | |
|   }
 | |
|   return x + 1;
 | |
| }
 | |
| int main(int x) {
 | |
|   return foo(x) * 10;
 | |
| }
 | |
| {-
 | |
|    method_id | in | out
 | |
| TESTCASE | 0 | 10 | 110
 | |
| TESTCASE | 0 | -5 | 1110
 | |
| TESTCASE | 0 | -4 | -70
 | |
| -}
 |