mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			369 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			369 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C {
 | |
|     function f() view external returns (uint ret) {
 | |
|         assembly {
 | |
|             ret := shl(gas(), 5)
 | |
|             ret := shr(ret, 2)
 | |
|             ret := sar(ret, 2)
 | |
|         }
 | |
|     }
 | |
|     function g() external returns (address ret) {
 | |
|         assembly {
 | |
|             ret := create2(0, 0, 0, 0)
 | |
|         }
 | |
|     }
 | |
| }
 | |
| // ====
 | |
| // EVMVersion: >=constantinople
 | |
| // ----
 |