From 97411bca6e2a7b8993c117fed99c18c60f8db768 Mon Sep 17 00:00:00 2001 From: Konstantin Anisimov Date: Tue, 24 Jan 2017 15:43:36 +0700 Subject: [PATCH] TESTS: new test added --- backend.native/tests/codegen/inline/inline9.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 backend.native/tests/codegen/inline/inline9.kt diff --git a/backend.native/tests/codegen/inline/inline9.kt b/backend.native/tests/codegen/inline/inline9.kt new file mode 100644 index 00000000000..8e229a38cf7 --- /dev/null +++ b/backend.native/tests/codegen/inline/inline9.kt @@ -0,0 +1,12 @@ +@Suppress("NOTHING_TO_INLINE") +inline fun foo(i4: Int, i5: Int): Int { + return i4 + i5 +} + +fun bar(i1: Int, i2: Int, i3: Int): Int { + return foo(i1 + i2, i3) +} + +fun main(args: Array) { + println(bar(1, 2, 3).toString()) +}