view graal/com.oracle.truffle.sl.test/tests/String.sl @ 13858:6b91134526a7

Truffle: disable (most) optimistic optimizations (profile is not reliable in hosted mode)
author Andreas Woess <andreas.woess@jku.at>
date Mon, 03 Feb 2014 15:49:58 +0100
parents b16ec83edc73
children ff3136ecb5a7
line wrap: on
line source

function null() {
}

function foo() {
  return "bar";
}

function main() {  
  println("s" + null());  
  println("s" + null);  
  println("s" + foo());  
  println("s" + foo);
    
  println(null() + "s");  
  println(null() + "s");  
  println(foo() + "s");  
  println(foo + "s");
}