mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			376 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			376 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C {
 | |
|     function f(uint, bytes calldata x, uint) public returns (uint r, uint v) {
 | |
|         assembly {
 | |
|             x.offset := 8
 | |
|             x.length := 20
 | |
|         }
 | |
|         assembly {
 | |
|             r := x.offset
 | |
|             v := x.length
 | |
|         }
 | |
|     }
 | |
| }
 | |
| // ----
 | |
| // f(uint256,bytes,uint256): 7, 0x60, 8, 2, 0 -> 8, 0x14
 | |
| // f(uint256,bytes,uint256): 0, 0, 0 -> 8, 0x14
 |