[Test] Move KotlinAgainstKotlin tests under BlackBoxCodegen tests

This commit is contained in:
Dmitriy Novozhilov
2021-01-22 15:13:50 +03:00
parent 1ea4fa4464
commit 5c8d555808
147 changed files with 3749 additions and 2743 deletions
@@ -0,0 +1,23 @@
// TARGET_BACKEND: JVM
// MODULE: lib
// FILE: A.kt
// WITH_RUNTIME
package first.second
class FqName(val s: String)
@JvmField
val VOLATILE_ANNOTATION_FQ_NAME = FqName("volatile")
// MODULE: main(lib)
// FILE: B.kt
import first.second.VOLATILE_ANNOTATION_FQ_NAME
import first.second.FqName
fun foo() = hasAnnotation(VOLATILE_ANNOTATION_FQ_NAME)
fun hasAnnotation(name: FqName): Boolean = true
fun box() = if (foo()) "OK" else "FAIL"