mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			263 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			263 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract A {
 | |
| 	function g() public { revert("fail"); }
 | |
| }
 | |
| 
 | |
| contract C {
 | |
| 	A a = new A();
 | |
| 	function f() public {
 | |
| 		a.g();
 | |
| 	}
 | |
| }
 | |
| // ====
 | |
| // compileViaYul: also
 | |
| // EVMVersion: >=byzantium
 | |
| // revertStrings: debug
 | |
| // ----
 | |
| // f() -> FAILURE, hex"08c379a0", 0x20, 4, "fail"
 |