mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			341 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			341 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract c {
 | 
						|
    uint spacer1;
 | 
						|
    uint spacer2;
 | 
						|
    uint[3] data;
 | 
						|
    function fill() public {
 | 
						|
        for (uint i = 0; i < data.length; ++i) data[i] = i+1;
 | 
						|
    }
 | 
						|
    function clear() public { delete data; }
 | 
						|
}
 | 
						|
// ====
 | 
						|
// compileToEwasm: also
 | 
						|
// ----
 | 
						|
// storageEmpty -> 1
 | 
						|
// fill() ->
 | 
						|
// storageEmpty -> 0
 | 
						|
// clear() ->
 | 
						|
// storageEmpty -> 1
 |