Mercurial > hg > truffle
view graal/com.oracle.truffle.sl.test/tests/LoopPolymorphic.sl @ 13853:f11d3d5248b5
Use UTF-8 encoding when compiling on the command line and for Eclipse projects
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Fri, 31 Jan 2014 16:36:02 -0800 |
parents | 64c77f0577bb |
children | afd6fa5e8229 |
line wrap: on
line source
function add(a, b) { return a + b; } function loop(n) { i = 0; while (i < n) { i = add(i, 1); } return i; } function main() { add("a", "b"); println(loop(1000)); }