Move everything under kotlin-native folder

I was forced to manually do update the following files, because otherwise
they would be ignored according .gitignore settings. Probably they
should be deleted from repo.

Interop/.idea/compiler.xml
Interop/.idea/gradle.xml
Interop/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_runtime_1_0_3.xml
Interop/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_0_3.xml
Interop/.idea/modules.xml
Interop/.idea/modules/Indexer/Indexer.iml
Interop/.idea/modules/Runtime/Runtime.iml
Interop/.idea/modules/StubGenerator/StubGenerator.iml
backend.native/backend.native.iml
backend.native/bc.frontend/bc.frontend.iml
backend.native/cli.bc/cli.bc.iml
backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2Native.kt
backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2NativeCompilerArguments.kt
backend.native/tests/link/lib/foo.kt
backend.native/tests/link/lib/foo2.kt
backend.native/tests/teamcity-test.property
This commit is contained in:
Stanislav Erokhin
2020-10-27 21:00:28 +03:00
parent 91e4162dad
commit f624800b84
2830 changed files with 0 additions and 0 deletions
@@ -0,0 +1,13 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
import kotlinx.cinterop.convert
import platform.posix.*
fun main(args: Array<String>) {
// Just check the typealias is in scope.
val sizet: size_t = 0.convert<size_t>()
println("sizet = $sizet")
}
@@ -0,0 +1,6 @@
package serialization.fake_overrides
open class A {
open fun qux() = "Super"
open fun tic() = "Super"
}
@@ -0,0 +1,9 @@
import serialization.fake_overrides.*
fun test1() = println(Z().bar())
fun main() {
test0()
test1()
test2()
test3()
}
@@ -0,0 +1,15 @@
package serialization.fake_overrides
open class X {
}
class Y: X() {
fun bar() = "Stale"
}
class B: A() {
}
class C: A() {
override fun tic() = "Child"
}
@@ -0,0 +1,15 @@
package serialization.fake_overrides
open class X {
fun bar() = "Moved"
}
class Y: X() {
}
class B: A() {
override fun qux() = "Child"
}
class C: A() {
}
@@ -0,0 +1,8 @@
package serialization.fake_overrides
class Z: X() {
}
fun test0() = println(Y().bar())
fun test2() = println(B().qux())
fun test3() = println(C().qux())
@@ -0,0 +1 @@
fun main() = println("hello")
@@ -0,0 +1 @@
ir_provider=UNSUPPORTED
@@ -0,0 +1,12 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
package qwerty
fun foo(a: Int): Int {
return a
}
@@ -0,0 +1,12 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
package qwerty
fun foo2(a: Int): Int {
return a
}
@@ -0,0 +1,8 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
fun main(args: Array<String>) {
println("Hello")
}
@@ -0,0 +1,7 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
package foo
fun foo() {}
@@ -0,0 +1,53 @@
/*
* Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
// Private classes
private open class A {
public fun foo1() = println("PASS")
internal fun foo2() = println("PASS")
protected fun foo3() = println("PASS")
}
private class B:A() {
fun foo4() = foo3()
}
// Private interfaces
private interface C {
fun foo() = println("PASS")
}
private class D: C
fun runner() {
B().foo1()
B().foo2()
B().foo4()
D().foo()
// Objects
object : A(){
fun foo4() = foo3()
}.apply {
foo1()
foo2()
foo4()
}
// Function local classes
abstract class E {
public open fun foo1() = println("PASS")
internal open fun foo2() = println("PASS")
protected open fun foo3() = println("PASS")
}
class F : E() {
fun foo4() = foo3()
}
F().foo1()
F().foo2()
F().foo4()
}
@@ -0,0 +1,9 @@
/*
* Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
fun main() {
runner()
}
@@ -0,0 +1,97 @@
/*
* Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
// Private classes
private open class A {
public open fun foo1() = println("FAIL")
internal open fun foo2() = println("FAIL")
protected open fun foo3() = println("FAIL")
private fun foo4() = println("FAIL")
}
private class B:A() {
override public fun foo1() = println("PASS")
override internal fun foo2() = println("PASS")
override protected fun foo3() = println("PASS")
private fun foo4() = println("PASS")
fun foo5() = foo3()
fun foo6() = foo4()
}
private abstract class G {
public abstract fun foo1()
internal abstract fun foo2()
protected abstract fun foo3()
private fun foo4() = println("FAIL")
}
private class H:A() {
override public fun foo1() = println("PASS")
override internal fun foo2() = println("PASS")
override protected fun foo3() = println("PASS")
private fun foo4() = println("PASS")
fun foo5() = foo3()
fun foo6() = foo4()
}
// Private interfaces
private interface C {
fun foo() = println("FAIL")
}
private class D: C {
override fun foo() = println("PASS")
}
fun runner() {
B().foo1()
B().foo2()
B().foo5()
B().foo6()
H().foo1()
H().foo2()
H().foo5()
H().foo6()
D().foo()
// Objects
object : A(){
override public fun foo1() = println("PASS")
override internal fun foo2() = println("PASS")
override protected fun foo3() = println("PASS")
private fun foo4() = println("PASS")
fun foo5() = foo3()
fun foo6() = foo4()
}.apply {
foo1()
foo2()
foo5()
foo6()
}
// Function local classes
open class E {
public open fun foo1() = println("FAIL")
internal open fun foo2() = println("FAIL")
protected open fun foo3() = println("FAIL")
private fun foo4() = println("FAIL")
}
class F : E() {
public override fun foo1() = println("PASS")
internal override fun foo2() = println("PASS")
protected override fun foo3() = println("PASS")
private fun foo4() = println("PASS")
fun foo5() = foo3()
fun foo6() = foo4()
}
F().foo1()
F().foo2()
F().foo5()
F().foo6()
}
@@ -0,0 +1,8 @@
/*
* Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
fun main() {
runner()
}
@@ -0,0 +1,14 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
import kotlinx.cinterop.convert
import platform.posix.*
fun foo() {
println("linked library")
val size: size_t = 17.convert<size_t>()
val e = fabs(1.toDouble())
println("and symbols from posix available: $size; $e")
}
@@ -0,0 +1,9 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
fun main(args: Array<String>) {
foo()
}
@@ -0,0 +1,11 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
import qwerty.*
fun main(args: Array<String>) {
val size = foo(foo2(args.size))
println(size.toString())
}
@@ -0,0 +1,2 @@
/* This file has intentionally been left blank */
@@ -0,0 +1,3 @@
fun main() {
println("Hello, versioned world!")
}