IrCompileKotlinAgainstInlineKotlin tests

This commit is contained in:
Georgy Bronnikov
2019-09-03 17:48:49 +03:00
parent 0807987ef7
commit 7ede26e8f4
228 changed files with 4542 additions and 250 deletions
@@ -1,5 +1,6 @@
// FILE: 1.kt
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
package test
abstract class Introspector {
abstract inner class SchemaRetriever(val transaction: String) {
@@ -38,7 +39,7 @@ Kotlin
+ 1 1.kt
test/Introspector$SchemaRetriever$inSchema$1
*L
1#1,11:1
1#1,12:1
*E
// FILE: 2.smap
@@ -54,7 +55,7 @@ IntrospectorImpl$SchemaRetriever
test/Introspector$SchemaRetriever
*L
1#1,21:1
7#2:22
8#2:22
*E
*S KotlinDebug
*F
@@ -74,6 +75,6 @@ test/Introspector$SchemaRetriever$inSchema$1
+ 2 2.kt
IntrospectorImpl$SchemaRetriever
*L
1#1,11:1
9#2:12
1#1,12:1
9#2:13
*E
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
// FILE: 1.kt
package builders
@@ -38,7 +39,7 @@ Kotlin
+ 1 1.kt
builders/_1Kt$call$1
*L
1#1,11:1
1#1,12:1
*E
// FILE: 2.smap
@@ -54,7 +55,7 @@ _2Kt
builders/_1Kt
*L
1#1,21:1
6#2:22
7#2:22
*E
*S KotlinDebug
*F
@@ -74,6 +75,6 @@ builders/_1Kt$call$1
+ 2 2.kt
_2Kt
*L
1#1,11:1
10#2,2:12
1#1,12:1
10#2,2:13
*E
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
// FILE: 1.kt
package builders
@@ -44,7 +45,7 @@ _2Kt
builders/_1Kt
*L
1#1,23:1
6#2:24
7#2:24
*E
*S KotlinDebug
*F
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
// FILE: 1.kt
package builders
@@ -50,8 +51,8 @@ builders/_1Kt
1#1,24:1
7#1,3:26
10#1,6:30
6#2:25
6#2:29
7#2:25
7#2:29
*E
*S KotlinDebug
*F
@@ -1,5 +1,6 @@
// FILE: 1.kt
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
package builders
inline fun call(crossinline init: () -> Unit) {
@@ -41,7 +42,7 @@ Kotlin
+ 1 1.kt
builders/_1Kt$call$1
*L
1#1,13:1
1#1,14:1
*E
// FILE: 2.smap
@@ -57,7 +58,7 @@ _2Kt
builders/_1Kt
*L
1#1,22:1
6#2,5:23
7#2,5:23
*E
*S KotlinDebug
*F
@@ -77,6 +78,6 @@ builders/_1Kt$call$1
+ 2 2.kt
_2Kt
*L
1#1,13:1
10#2,2:14
1#1,14:1
10#2,2:15
*E
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
// FILE: 1.kt
package builders
@@ -47,7 +48,7 @@ _2Kt
builders/_1Kt
*L
1#1,26:1
6#2:27
7#2:27
*E
*S KotlinDebug
*F
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
// FILE: 1.kt
package builders
@@ -51,8 +52,8 @@ builders/_1Kt
1#1,26:1
7#1,3:28
10#1,8:32
6#2:27
6#2:31
7#2:27
7#2:31
*E
*S KotlinDebug
*F
@@ -1,5 +1,6 @@
// FILE: 1.kt
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
package builders
//TODO there is a bug in asm it's skips linenumber on same line on reading bytecode
inline fun call(crossinline init: () -> Unit) {
@@ -1,5 +1,6 @@
//FILE: 1.kt
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
package test
inline fun annotatedWith2(crossinline predicate: () -> Boolean) =
{ any { predicate() } }()
@@ -48,8 +49,8 @@ _2Kt
test/_1Kt
*L
1#1,18:1
9#2:19
5#2:20
10#2:19
6#2:20
*E
*S KotlinDebug
*F
@@ -72,8 +73,8 @@ test/_1Kt
+ 3 2.kt
_2Kt
*L
1#1,17:1
13#2,2:18
9#2:20
7#3:21
1#1,18:1
14#2,2:19
10#2:21
7#3:22
*E