mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			390 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			390 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C {
 | |
|     function f() public pure {
 | |
|         uint[] memory x;
 | |
|         uint y;
 | |
|         assembly {
 | |
|             y := x
 | |
|         }
 | |
|         // The value of an uninitialized dynamic array is not zero but rather
 | |
|         // an address of a location in memory that has the value of zero.
 | |
|         assert(y != 0);
 | |
|     }
 | |
| }
 | |
| // ====
 | |
| // compileToEwasm: also
 | |
| // compileViaYul: also
 | |
| // ----
 | |
| // f() ->
 |