mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			289 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			289 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    modifier repeat(bool twice) {
 | 
						|
        if (twice) _;
 | 
						|
        _;
 | 
						|
    }
 | 
						|
 | 
						|
    function f(bool twice) public repeat(twice) returns (uint256 r) {
 | 
						|
        r += 1;
 | 
						|
    }
 | 
						|
}
 | 
						|
// ====
 | 
						|
// compileViaYul: true
 | 
						|
// compileToEwasm: also
 | 
						|
// ----
 | 
						|
// f(bool): false -> 1
 | 
						|
// f(bool): true -> 1
 |