mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	More pure tests.
This commit is contained in:
		
							parent
							
								
									aad64d818a
								
							
						
					
					
						commit
						9577f87dfc
					
				| @ -5492,6 +5492,14 @@ BOOST_AUTO_TEST_CASE(bare_revert) | ||||
| 	CHECK_WARNING(text, "Statement has no effect."); | ||||
| } | ||||
| 
 | ||||
| BOOST_AUTO_TEST_CASE(bare_others) | ||||
| { | ||||
| 	CHECK_WARNING("contract C { function f() { selfdestruct; } }", "Statement has no effect."); | ||||
| 	CHECK_WARNING("contract C { function f() { assert; } }", "Statement has no effect."); | ||||
| 	CHECK_WARNING("contract C { function f() { require; } }", "Statement has no effect."); | ||||
| 	CHECK_WARNING("contract C { function f() { suicide; } }", "Statement has no effect."); | ||||
| } | ||||
| 
 | ||||
| BOOST_AUTO_TEST_CASE(pure_statement_in_for_loop) | ||||
| { | ||||
| 	char const* text = R"( | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user