[K/N][tests] Added test for @ character in library name

This commit is contained in:
Elena Lepilkina
2021-10-05 10:21:21 +03:00
committed by Space
parent 416719c216
commit 6bfa710e34
4 changed files with 24 additions and 0 deletions
@@ -2428,6 +2428,12 @@ linkTest("no_purge_for_dependencies") {
UtilsKt.dependsOnPlatformLibs(it)
}
linkTest("lib@name") {
useGoldenData = true
source = "link/klib_name/prog.kt"
lib = "link/klib_name/lib.kt"
}
task for0(type: KonanLocalTest) {
useGoldenData = true
source = "runtime/basic/for0.kt"
@@ -0,0 +1,8 @@
/*
* Copyright 2010-2021 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 foo() {
println("linked library")
}
@@ -0,0 +1,9 @@
/*
* Copyright 2010-2021 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 @@
linked library