diff options
Diffstat (limited to 'src/test/java/com/seaofnodes/simple/spill/Chapter23Test-testOrRhsLoopLocal.smp')
| -rw-r--r-- | src/test/java/com/seaofnodes/simple/spill/Chapter23Test-testOrRhsLoopLocal.smp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/java/com/seaofnodes/simple/spill/Chapter23Test-testOrRhsLoopLocal.smp b/src/test/java/com/seaofnodes/simple/spill/Chapter23Test-testOrRhsLoopLocal.smp new file mode 100644 index 00000000..c4e4f9b5 --- /dev/null +++ b/src/test/java/com/seaofnodes/simple/spill/Chapter23Test-testOrRhsLoopLocal.smp @@ -0,0 +1,10 @@ +struct _S { int f; }; +int x=0; +int result=arg&1; +if(!result) { + !_S !s=new _S; + while(x<3) x++; + s.f=++x; + result=s.f; +} +return x*10+result; |
