Add tests for issues fixed in JVM IR and other obsolete issues

#KT-6007
 #KT-16445
 #KT-17753
 #KT-22488
 #KT-23881
 #KT-24135
 #KT-26360
 #KT-27427
 #KT-27449
 #KT-27830
 #KT-28042
 #KT-29595
 #KT-30708
 #KT-32793
This commit is contained in:
Alexander Udalov
2021-01-07 19:31:59 +01:00
parent 3e59adc7f3
commit 5480faf5c5
36 changed files with 824 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
// FILE: test.kt
// KT-22488
fun box() {
test()
}
fun test(): Long {
if (1 == 1 &&
2 == 2) {
return 0
}
return 1
}
// LINENUMBERS
// test.kt:5 box
// LINENUMBERS JVM_IR
// test.kt:9 test
// LINENUMBERS
// test.kt:10 test
// test.kt:11 test
// test.kt:5 box
// test.kt:6 box
+23
View File
@@ -0,0 +1,23 @@
// FILE: test.kt
// KT-17753
fun box() {
test(true, true, true)
}
fun test(a: Boolean, b: Boolean, c: Boolean): Boolean {
return a
&& b
&& c
}
// LINENUMBERS
// test.kt:5 box
// LINENUMBERS JVM_IR
// test.kt:9 test
// test.kt:10 test
// LINENUMBERS
// test.kt:11 test
// test.kt:9 test
// test.kt:5 box
// test.kt:6 box