Move JVM specific IC tests to separate dir

This commit is contained in:
Alexey Tsvetkov
2017-08-21 07:10:43 +03:00
parent 556c43ae00
commit 2312013c41
19 changed files with 24 additions and 36 deletions
@@ -0,0 +1,3 @@
package test
fun a() = "a"
@@ -0,0 +1,3 @@
package test
fun b() = "b"
@@ -0,0 +1,4 @@
@file:JvmName("B")
package test
fun b() = "b"
@@ -0,0 +1,22 @@
================ Step #1 =================
Cleaning output files:
out/production/module/META-INF/module.kotlin_module
out/production/module/test/BKt.class
End of files
Compiling files:
src/b.kt
End of files
Marked as dirty by Kotlin:
src/usage.kt
Exit code: ADDITIONAL_PASS_REQUIRED
------------------------------------------
Cleaning output files:
out/production/module/META-INF/module.kotlin_module
out/production/module/test/UsageKt.class
End of files
Compiling files:
src/usage.kt
End of files
Exit code: OK
------------------------------------------
@@ -0,0 +1,3 @@
package other
fun other() = "other"
@@ -0,0 +1,5 @@
package test
fun main(args: Array<String>) {
println(a() + b() + other.other())
}
@@ -0,0 +1,8 @@
package foo
open class A(x: Int)
// The use of annotation here is intentional, so no change for "fun A" is detected,
// but after adding default value to A constructor, we want to force resolve to the constructor
@Deprecated("Warning", level = DeprecationLevel.WARNING)
fun A() = A(30)
@@ -0,0 +1,8 @@
package foo
open class A(x: Int = 10)
// The use of annotation here is intentional, so no change for "fun A" is detected,
// but after adding default value to A constructor, we want to force resolve to the constructor
@Deprecated("Hidden", level = DeprecationLevel.HIDDEN)
fun A() = A(30)
@@ -0,0 +1,3 @@
package foo
open class B() : A(20)
@@ -0,0 +1,3 @@
package foo
class C : B()
@@ -0,0 +1,32 @@
================ Step #1 =================
Cleaning output files:
out/production/module/META-INF/module.kotlin_module
out/production/module/foo/A.class
out/production/module/foo/AKt.class
End of files
Compiling files:
src/A.kt
End of files
Marked as dirty by Kotlin:
src/B.kt
src/createADefault.kt
src/createANonDefault.kt
src/useA.kt
Exit code: ADDITIONAL_PASS_REQUIRED
------------------------------------------
Cleaning output files:
out/production/module/META-INF/module.kotlin_module
out/production/module/foo/B.class
out/production/module/foo/CreateADefaultKt.class
out/production/module/foo/CreateANonDefaultKt.class
out/production/module/foo/UseAKt.class
End of files
Compiling files:
src/B.kt
src/createADefault.kt
src/createANonDefault.kt
src/useA.kt
End of files
Exit code: OK
------------------------------------------
@@ -0,0 +1,5 @@
package foo
fun createADefault() {
A()
}
@@ -0,0 +1,5 @@
package foo
fun createANonDefault() {
A(15)
}
@@ -0,0 +1,5 @@
package foo
fun createB() {
B()
}
@@ -0,0 +1,3 @@
package foo
fun useA(a: A) {}
@@ -0,0 +1,3 @@
package foo
fun useB(b: B) {}