JS: move more test to box tests

This commit is contained in:
Alexey Andreev
2016-08-29 12:37:13 +03:00
parent efb82a044f
commit cdf2212c73
70 changed files with 484 additions and 749 deletions
@@ -0,0 +1,31 @@
package foo
// CHECK_NOT_CALLED: testInline
// CHECK_LABELS_COUNT: function=testNoinline name=loop count=2
inline fun testInline(): Int {
var c = 0
loop@ for (i in 1..9) {
c++
if (c == 2) break@loop
}
loop@ for (j in 1..9) {
c++
if (c == 4) break@loop
}
return c
}
fun testNoinline(): Int {
return testInline()
}
fun box(): String {
assertEquals(4, testNoinline())
return "OK"
}