Mercurial > hg > graal-jvmci-8
view graal/com.oracle.truffle.sl.test/tests/Sum.sl @ 14149:cf6092d510c6
merge
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Wed, 12 Mar 2014 08:57:12 +0100 |
parents | ff3136ecb5a7 |
children |
line wrap: on
line source
function main() { i = 0; sum = 0; while (i <= 10000) { sum = sum + i; i = i + 1; } return sum; }