git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactored, added stubs for xml operators
[swftools.git]
/
lib
/
as3
/
ok
/
assignments.as
diff --git
a/lib/as3/ok/assignments.as
b/lib/as3/ok/assignments.as
index
63d46b7
..
ef2dea9
100644
(file)
--- a/
lib/as3/ok/assignments.as
+++ b/
lib/as3/ok/assignments.as
@@
-5,7
+5,7
@@
package {
public class Main extends flash.display.MovieClip {
var count:int = 1;
public class Main extends flash.display.MovieClip {
var count:int = 1;
- var num:int = 15;
+ var num:int = 16;
function assert(b:Boolean) {
if(b) {
function assert(b:Boolean) {
if(b) {
@@
-39,6
+39,8
@@
package {
x = (y>>>=1); assert(x==2 && y==2);
y = 2;
x = (y/=2); assert(x==1 && y==1);
x = (y>>>=1); assert(x==2 && y==2);
y = 2;
x = (y/=2); assert(x==1 && y==1);
+ x = 0x55;
+ x |= 0x0f; assert(x==0x5f);
/* nested assignment expressions need different temporary
registers- make sure they don't collide */
/* nested assignment expressions need different temporary
registers- make sure they don't collide */
@@
-48,6
+50,8
@@
package {
var d:int = 4;
a += b += c += d += 1
assert(a==11 && b==10 && c==8 && d==5);
var d:int = 4;
a += b += c += d += 1
assert(a==11 && b==10 && c==8 && d==5);
+
+ trace("[exit]");
}
}
}
}
}
}