Get rid of reduntant jvm parts in tests

This commit is contained in:
Mikhael Bogdanov
2018-12-21 13:34:40 +01:00
parent f59b6a350f
commit d1efac617d
10 changed files with 22 additions and 34 deletions
+1 -3
View File
@@ -1,5 +1,3 @@
// TARGET_BACKEND: JVM
class A(var value: String)
fun box(): String {
@@ -7,7 +5,7 @@ fun box(): String {
try {
test(a)
} catch(e: java.lang.RuntimeException) {
} catch(e: RuntimeException) {
}
@@ -1,5 +1,3 @@
// TARGET_BACKEND: JVM
class A(var value: String)
fun box(): String {
@@ -7,7 +5,7 @@ fun box(): String {
try {
test(a)
} catch(e: java.lang.RuntimeException) {
} catch(e: RuntimeException) {
}
@@ -1,5 +1,3 @@
// TARGET_BACKEND: JVM
class A(var value: String)
fun box(): String {
@@ -7,7 +5,7 @@ fun box(): String {
try {
test(a)
} catch(e: java.lang.RuntimeException) {
} catch(e: RuntimeException) {
}
@@ -1,9 +1,7 @@
// TARGET_BACKEND: JVM
fun box(): String {
var cycle = true;
while (true) {
if (true || throw java.lang.RuntimeException()) {
if (true || throw RuntimeException()) {
return "OK"
}
}