view graal/com.oracle.truffle.sl.test/tests/Break.sl @ 18781:941761f6b736

Truffle-DSL: fixed thrown exception messages should provide more contextual information. (reported by Benoit Daloze)
author Christian Humer <christian.humer@gmail.com>
date Mon, 05 Jan 2015 20:23:22 +0100
parents 64c77f0577bb
children
line wrap: on
line source

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