mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			354 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			354 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C {
 | |
|   uint x;
 | |
|   modifier m() {
 | |
|     uint t;
 | |
|     assembly {
 | |
|       function f() -> x { x := 8 }
 | |
|       t := f()
 | |
|     }
 | |
|     x = t;
 | |
|     _;
 | |
|   }
 | |
|   function f() m m public returns (uint r) {
 | |
|     assembly { function f() -> x { x := 1 } r := f() }
 | |
|   }
 | |
|   function g() m m public returns (uint r) {
 | |
|     assembly { function f() -> x { x := 2 } r := f() }
 | |
|   }
 | |
| } |