mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			248 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			248 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    uint constant x = 2**20;
 | 
						|
    bool constant b = true;
 | 
						|
    bytes4 constant s = "ab";
 | 
						|
    function f() public pure {
 | 
						|
        assembly {
 | 
						|
            let c1 := x
 | 
						|
            let c2 := b
 | 
						|
            let c3 := s
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 | 
						|
// ----
 |