diff --git a/backend.native/tests/build.gradle b/backend.native/tests/build.gradle index ab09843bee1..24b1d6c4215 100644 --- a/backend.native/tests/build.gradle +++ b/backend.native/tests/build.gradle @@ -370,6 +370,12 @@ task slackReportNightly(type:NightlyReporter) { externalWindowsReport = "external_windows_results/reports.json" } +linkTest("localDelegatedPropertyLink") { + goldValue = "OK\n" + source = "lower/local_delegated_property_link/main.kt" + lib = "lower/local_delegated_property_link/lib.kt" +} + task sum(type: KonanLocalTest) { source = "codegen/function/sum.kt" } diff --git a/backend.native/tests/lower/local_delegated_property_link/lib.kt b/backend.native/tests/lower/local_delegated_property_link/lib.kt new file mode 100644 index 00000000000..bea7249286e --- /dev/null +++ b/backend.native/tests/lower/local_delegated_property_link/lib.kt @@ -0,0 +1,8 @@ +fun foo(): String{ + val bar: String by lazy { + "OK" + } + + return bar +} + diff --git a/backend.native/tests/lower/local_delegated_property_link/main.kt b/backend.native/tests/lower/local_delegated_property_link/main.kt new file mode 100644 index 00000000000..f9033e15661 --- /dev/null +++ b/backend.native/tests/lower/local_delegated_property_link/main.kt @@ -0,0 +1,3 @@ +fun main() { + println(foo()) +}