mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			377 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			377 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    struct S {
 | 
						|
        S[] x;
 | 
						|
    }
 | 
						|
    S sstorage;
 | 
						|
 | 
						|
    function f() public returns (uint256) {
 | 
						|
        S memory s;
 | 
						|
        s.x = new S[](10);
 | 
						|
        delete s;
 | 
						|
        // TODO Uncomment after implemented.
 | 
						|
        // sstorage.x.push();
 | 
						|
        delete sstorage;
 | 
						|
        return 1;
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
// ====
 | 
						|
// compileViaYul: also
 | 
						|
// compileToEwasm: also
 | 
						|
// ----
 | 
						|
// f() -> 1
 |