view graal/com.oracle.truffle.sl.test/tests/Sum.sl @ 15464:8df78fe6d84c

re-enabled use of Graal compilation queue by default until regression when using HotSpot queue is understood/resolved
author Doug Simon <doug.simon@oracle.com>
date Fri, 02 May 2014 09:12:23 +0200
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;  
}