[swfinterp] Start working on basic tests
This commit is contained in:
		
							parent
							
								
									5425626790
								
							
						
					
					
						commit
						0cb2056304
					
				
					 4 changed files with 126 additions and 17 deletions
				
			
		
							
								
								
									
										1
									
								
								test/swftests/.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								test/swftests/.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
*.swf
 | 
			
		||||
							
								
								
									
										13
									
								
								test/swftests/LocalVars.as
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								test/swftests/LocalVars.as
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,13 @@
 | 
			
		|||
// input: [1, 2]
 | 
			
		||||
// output: 3
 | 
			
		||||
 | 
			
		||||
package {
 | 
			
		||||
public class LocalVars {
 | 
			
		||||
    public static function main(a:int, b:int):int{
 | 
			
		||||
        var c:int = a + b + b;
 | 
			
		||||
        var d:int = c - b;
 | 
			
		||||
        var e:int = d;
 | 
			
		||||
        return e;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue