mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			316 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			316 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C {
 | |
|     function f(bytes calldata b) public returns (bool correct) {
 | |
|         bytes1 a = b[3];
 | |
|         uint r;
 | |
|         assembly {
 | |
|             r := a
 | |
|         }
 | |
|         correct = r == (0x64 << 248);
 | |
|     }
 | |
| }
 | |
| // ====
 | |
| // compileViaYul: also
 | |
| // compileToEwasm: also
 | |
| // ----
 | |
| // f(bytes): 0x20, 0x04, "dead" -> true
 |