[JS IR BE] Update test data

This commit is contained in:
Roman Artemev
2018-06-13 17:00:56 +03:00
committed by Roman Artemev
parent 02628e8de3
commit f69bd54d6c
174 changed files with 83 additions and 197 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1118
package foo
@@ -0,0 +1,26 @@
// EXPECTED_REACHABLE_NODES: 1113
package foo
class Ex1(val s: String) : Exception()
class Ex2(val x: Ex1) : Exception()
fun box(): String {
var s: String = ""
try {
throw Ex1("OK")
} catch (e: RuntimeException) {
s = "Failed1"
} catch (e: Ex1) {
try {
throw Ex2(e)
} catch (r: RuntimeException) {
s = "Failed2"
} catch (ex: Ex2){
s = ex.x.s
}
}
return s
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1112
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1122
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1113
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1113
package foo
@@ -9,11 +8,11 @@ fun box(): String {
res = try { 10 } catch(e: Exception) { 20 } finally { 80 }
assertEquals(10, res)
res = try { 10; throw RuntimeException() } catch(e: Exception) { 20 }
assertEquals(20, res)
res = try { 10; throw RuntimeException() } catch(e: Exception) { 30 }
assertEquals(30, res)
res = try { 10; throw RuntimeException() } catch(e: Exception) { 20 } finally { 100 }
assertEquals(20, res)
res = try { 10; throw RuntimeException() } catch(e: Exception) { 40 } finally { 100 }
assertEquals(40, res)
res = 50 + try { 10 } catch(e: Exception) { 20 }
assertEquals(60, res)
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1114
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1113
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1114
package foo