mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Add test case for string literals in switch statements in Yul
This commit is contained in:
		
							parent
							
								
									18eed44688
								
							
						
					
					
						commit
						b752551ebd
					
				| @ -0,0 +1,9 @@ | |||||||
|  | contract C { | ||||||
|  |   function f() public pure { | ||||||
|  |     assembly { | ||||||
|  |       switch codesize() | ||||||
|  |       case "1" {} | ||||||
|  |       case "2" {} | ||||||
|  |     } | ||||||
|  |   } | ||||||
|  | } | ||||||
| @ -0,0 +1,5 @@ | |||||||
|  | { | ||||||
|  |     switch codesize() | ||||||
|  |     case "1" {} | ||||||
|  |     case "2" {} | ||||||
|  | } | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user