mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			451 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			451 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
pragma abicoder               v2;
 | 
						|
contract C {
 | 
						|
	function f() public {
 | 
						|
		revert("");
 | 
						|
	}
 | 
						|
	function g(string calldata msg) public {
 | 
						|
		revert(msg);
 | 
						|
	}
 | 
						|
}
 | 
						|
// ====
 | 
						|
// EVMVersion: >=byzantium
 | 
						|
// compileViaYul: also
 | 
						|
// revertStrings: debug
 | 
						|
// ----
 | 
						|
// f() -> FAILURE, hex"08c379a0", 0x20, 0
 | 
						|
// g(string): "" -> FAILURE, hex"08c379a0", 0x20, 0
 | 
						|
// g(string): 0x20, 0, "" -> FAILURE, hex"08c379a0", 0x20, 0
 | 
						|
// g(string): 0x20, 0 -> FAILURE, hex"08c379a0", 0x20, 0
 |