X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FWhile3.scl;fp=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FWhile3.scl;h=0e0d4aff87c48d1f3d9ade72868a4884f0f41ec2;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=0520769588d25990d170a1cdfa148b0a08bb475b;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/While3.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/While3.scl index 052076958..0e0d4aff8 100644 --- a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/While3.scl +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/While3.scl @@ -1,11 +1,11 @@ -import "Prelude" - -main = do - a = ref 1 - b = ref 0 - while (getRef a < 5) do - b := getRef b + 1 - a := getRef a + 1 - getRef b --- +import "Prelude" + +main = do + a = ref 1 + b = ref 0 + while (getRef a < 5) do + b := getRef b + 1 + a := getRef a + 1 + getRef b +-- 4 \ No newline at end of file