A test to check we don't throw away a library dependency only because it

it a default lib not needed in the main program.
This commit is contained in:
Alexander Gorshenev
2017-10-11 15:42:53 +03:00
committed by alexander-gorshenev
parent e7286998aa
commit 2445357166
3 changed files with 18 additions and 0 deletions
+6
View File
@@ -1227,6 +1227,12 @@ task link_default_libs(type: RunKonanTest) {
source = "link/default/default.kt"
}
task no_purge_for_dependencies(type: LinkKonanTest) {
goldValue = "linked library\nand symbols from posix available: 17; 1.0\n"
source = "link/purge1/prog.kt"
lib = "link/purge1/lib.kt"
}
task for0(type: RunKonanTest) {
goldValue = "2\n3\n4\n"
source = "runtime/basic/for0.kt"