mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			313 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			313 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
|  {
 | |
|     let x := 0
 | |
|     switch mload(x)
 | |
|     case 0 { x := x }
 | |
|     case 1 { x := 1 }
 | |
|     default { invalid() }
 | |
|     mstore(1, 1)
 | |
| }
 | |
| // ----
 | |
| // step: fullSuite
 | |
| //
 | |
| // {
 | |
| //     {
 | |
| //         switch mload(0)
 | |
| //         case 0 { }
 | |
| //         case 1 { }
 | |
| //         default { invalid() }
 | |
| //         mstore(1, 1)
 | |
| //     }
 | |
| // }
 |