mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			273 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			273 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    bytes1 a;
 | 
						|
 | 
						|
    function f(bytes32 x) public returns (uint256, uint256, uint256) {
 | 
						|
        return (x.length, bytes16(uint128(2)).length, a.length + 7);
 | 
						|
    }
 | 
						|
}
 | 
						|
// ====
 | 
						|
// compileViaYul: also
 | 
						|
// compileToEwasm: also
 | 
						|
// ----
 | 
						|
// f(bytes32): "789" -> 32, 16, 8
 |