mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Tests for constant constructors
This commit is contained in:
		
							parent
							
								
									319ec34093
								
							
						
					
					
						commit
						05ae5e4f5a
					
				| @ -3989,6 +3989,17 @@ BOOST_AUTO_TEST_CASE(unsatisfied_version) | ||||
| 	BOOST_CHECK(expectError(text, true) == Error::Type::SyntaxError); | ||||
| } | ||||
| 
 | ||||
| BOOST_AUTO_TEST_CASE(constant_constructor) | ||||
| { | ||||
| 	char const* text = R"( | ||||
| 		contract test { | ||||
| 			function test() constant {} | ||||
| 		} | ||||
| 	)"; | ||||
| 	BOOST_CHECK(expectError(text, false) == Error::Type::TypeError); | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| BOOST_AUTO_TEST_SUITE_END() | ||||
| 
 | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user