view graal/com.oracle.truffle.sl.test/tests/Sum.sl @ 21480:c2b006c5e15f

Testing the annotation processor using the @ExpectedError annotation as suggested by Christian Humer
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Mon, 25 May 2015 10:36:30 +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;  
}