From 6a1745e8ac833b5077862127b0c5df1ba7b8494c Mon Sep 17 00:00:00 2001 From: Konstantin Anisimov Date: Thu, 19 Jan 2017 11:40:18 +0700 Subject: [PATCH] TESTS: new inline tests added --- backend.native/tests/codegen/inline/inline6.kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 backend.native/tests/codegen/inline/inline6.kt diff --git a/backend.native/tests/codegen/inline/inline6.kt b/backend.native/tests/codegen/inline/inline6.kt new file mode 100644 index 00000000000..e8f0c62a633 --- /dev/null +++ b/backend.native/tests/codegen/inline/inline6.kt @@ -0,0 +1,15 @@ +//@Suppress("NOTHING_TO_INLINE") +//inline fun foo(body: () -> Unit) { +fun foo(body: () -> Unit) { + body() +} + +fun bar() { + foo { + println("hello") + } +} + +fun main(args: Array) { + bar() +}