guards in mcode
This commit is contained in:
12
test_guards.ce
Normal file
12
test_guards.ce
Normal file
@@ -0,0 +1,12 @@
|
||||
// Test array guard emission and optimization
|
||||
var a = [1, 2, 3]
|
||||
push(a, 4)
|
||||
var v = a[]
|
||||
|
||||
var f = function(arr) {
|
||||
push(arr, 99)
|
||||
var x = arr[]
|
||||
return x
|
||||
}
|
||||
|
||||
f(a)
|
||||
Reference in New Issue
Block a user