view graal/com.oracle.truffle.sl.test/tests_instrumentation/Instrumentation_assnCount.sl @ 21572:d6d7e51d9206

Truffle/instrumentation: catch a NPE error condition (when a tagged STATEMENT has no source information)
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Wed, 27 May 2015 20:49:09 -0700
parents 7661cc464239
children
line wrap: on
line source

function loop(count) {  
  i = 0;  
  while (i < count) {  
    i = i + 1;  
  }  
  return i;  
}

function main() {
  count = loop(100);
}