mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			313 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			313 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C {
 | |
|     function f() public returns (uint i) {
 | |
|         assembly {
 | |
|             for {} lt(i, 10) { i := add(i, 1) }
 | |
|             {
 | |
|                 if eq(i, 6) { break }
 | |
|                 i := add(i, 1)
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| }
 | |
| // ====
 | |
| // compileToEwasm: also
 | |
| // compileViaYul: also
 | |
| // ----
 | |
| // f() -> 6
 |