IR text tests: New tests specifically for main functions mangling

^KT-57755
This commit is contained in:
Dmitriy Dolovov
2023-12-18 17:00:16 +01:00
committed by Space Team
parent af247c3344
commit 61282fcaeb
18 changed files with 696 additions and 0 deletions
@@ -0,0 +1,29 @@
// TARGET_BACKEND: JVM
// ^^^ Only JVM allows `main` functions in the same package but in different files.
// FIR_IDENTICAL
// WITH_STDLIB
// FILE: a.kt
fun main() {
println("main() in a.kt")
}
// FILE: b.kt
fun main() {
println("main() in b.kt")
}
// FILE: c.kt
package foo
fun main() {
println("foo.main() in c.kt")
}
// FILE: d.kt
package foo
fun main() {
println("foo.main() in d.kt")
}