mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			272 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			272 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
pragma experimental SMTChecker;
 | 
						|
 | 
						|
contract A {
 | 
						|
	uint x;
 | 
						|
	function h() public view {
 | 
						|
		assert(x == 0);
 | 
						|
	}
 | 
						|
}
 | 
						|
 | 
						|
contract B is A {
 | 
						|
	function g() public view {
 | 
						|
		assert(x == 0);
 | 
						|
	}
 | 
						|
}
 | 
						|
 | 
						|
contract C is B {
 | 
						|
	function f() public view {
 | 
						|
		assert(x == 0);
 | 
						|
	}
 | 
						|
}
 | 
						|
// ====
 | 
						|
// SMTSolvers: z3
 |