Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl.test/tests/String.sl @ 13883:ff3136ecb5a7
SL: small changes
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Wed, 05 Feb 2014 03:16:21 -0800 |
parents | b16ec83edc73 |
children |
comparison
equal
deleted
inserted
replaced
13870:d04be74665fb | 13883:ff3136ecb5a7 |
---|---|
1 function null() { | 1 function null() { |
2 } | 2 } |
3 | 3 |
4 function foo() { | 4 function foo() { |
5 return "bar"; | 5 return "bar"; |
6 } | |
7 | |
8 function f(a, b) { | |
9 return a + " < " + b + ": " + (a < b); | |
6 } | 10 } |
7 | 11 |
8 function main() { | 12 function main() { |
9 println("s" + null()); | 13 println("s" + null()); |
10 println("s" + null); | 14 println("s" + null); |
13 | 17 |
14 println(null() + "s"); | 18 println(null() + "s"); |
15 println(null() + "s"); | 19 println(null() + "s"); |
16 println(foo() + "s"); | 20 println(foo() + "s"); |
17 println(foo + "s"); | 21 println(foo + "s"); |
22 | |
23 println(f(2, 4)); | |
24 println(f(2, "4")); | |
18 } | 25 } |