Basic -Xrelease option support

#KT-29974 Fixed
This commit is contained in:
Mikhael Bogdanov
2021-11-04 14:27:46 +01:00
committed by Space
parent 6026a96349
commit 409d36c911
45 changed files with 1327 additions and 5 deletions
@@ -0,0 +1,14 @@
// CHECK_BYTECODE_TEXT
// 2 CHECKCAST java/lang/ReflectiveOperationException
// 1 LOCALVARIABLE reflective Ljava/lang/ReflectiveOperationException;
fun cond() = true
fun test(iae: IllegalAccessException?, cnfe: ClassNotFoundException?) {
val reflective = if (cond()) iae else cnfe
}
fun box(): String {
test(null, null)
return "OK"
}
@@ -0,0 +1,15 @@
// RELEASE: 10
// CHECK_BYTECODE_TEXT
// 2 CHECKCAST java/lang/ReflectiveOperationException
// 1 LOCALVARIABLE reflective Ljava/lang/ReflectiveOperationException;
fun cond() = true
fun test(iae: IllegalAccessException?, cnfe: ClassNotFoundException?) {
val reflective = if (cond()) iae else cnfe
}
fun box(): String {
test(null, null)
return "OK"
}
@@ -0,0 +1,15 @@
// RELEASE: 11
// CHECK_BYTECODE_TEXT
// 2 CHECKCAST java/lang/ReflectiveOperationException
// 1 LOCALVARIABLE reflective Ljava/lang/ReflectiveOperationException;
fun cond() = true
fun test(iae: IllegalAccessException?, cnfe: ClassNotFoundException?) {
val reflective = if (cond()) iae else cnfe
}
fun box(): String {
test(null, null)
return "OK"
}
@@ -0,0 +1,15 @@
// RELEASE: 6
// CHECK_BYTECODE_TEXT
// 0 CHECKCAST java/lang/ReflectiveOperationException
// 0 LOCALVARIABLE reflective Ljava/lang/ReflectiveOperationException;
fun cond() = true
fun test(iae: IllegalAccessException?, cnfe: ClassNotFoundException?) {
val reflective = if (cond()) iae else cnfe
}
fun box(): String {
test(null, null)
return "OK"
}
@@ -0,0 +1,15 @@
// RELEASE: 8
// CHECK_BYTECODE_TEXT
// 2 CHECKCAST java/lang/ReflectiveOperationException
// 1 LOCALVARIABLE reflective Ljava/lang/ReflectiveOperationException;
fun cond() = true
fun test(iae: IllegalAccessException?, cnfe: ClassNotFoundException?) {
val reflective = if (cond()) iae else cnfe
}
fun box(): String {
test(null, null)
return "OK"
}
@@ -0,0 +1,15 @@
// RELEASE: 9
// CHECK_BYTECODE_TEXT
// 2 CHECKCAST java/lang/ReflectiveOperationException
// 1 LOCALVARIABLE reflective Ljava/lang/ReflectiveOperationException;
fun cond() = true
fun test(iae: IllegalAccessException?, cnfe: ClassNotFoundException?) {
val reflective = if (cond()) iae else cnfe
}
fun box(): String {
test(null, null)
return "OK"
}