mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Add test for assignment.
This commit is contained in:
		
							parent
							
								
									a5696e1f0a
								
							
						
					
					
						commit
						946a63c26f
					
				| @ -182,12 +182,18 @@ BOOST_AUTO_TEST_CASE(error_tag) | ||||
| 	BOOST_CHECK(successAssemble("{ invalidJumpLabel }")); | ||||
| } | ||||
| 
 | ||||
| BOOST_AUTO_TEST_CASE(inline_assembly_shadowed_instruction) | ||||
| BOOST_AUTO_TEST_CASE(inline_assembly_shadowed_instruction_declaration) | ||||
| { | ||||
| 	// Error message: "Cannot use instruction names for identifier names."
 | ||||
| 	BOOST_CHECK(!successAssemble("{ let gas := 1 }")); | ||||
| } | ||||
| 
 | ||||
| BOOST_AUTO_TEST_CASE(inline_assembly_shadowed_instruction_assignment) | ||||
| { | ||||
| 	// Error message: "Cannot use instruction names for identifier names."
 | ||||
| 	BOOST_CHECK(!successAssemble("{ 2 =: gas }")); | ||||
| } | ||||
| 
 | ||||
| BOOST_AUTO_TEST_SUITE_END() | ||||
| 
 | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user