view graal/com.oracle.truffle.sl.test/tests/Break.sl @ 16775:8c606e8053b8

Truffle/API test: additional documentation on the new instrumentation tests; move into project with other tests and add an entry in package-info.java
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Mon, 11 Aug 2014 10:35:38 -0700
parents 64c77f0577bb
children
line wrap: on
line source

function main() {  
  i = 0;  
  while (i < 1000) {
    if (i >= 942) {
      break;
    }  
    i = i + 1;  
  }
  return i;  
}