TESTS: passing changes in the test
This commit is contained in:
@@ -828,6 +828,6 @@ task unit4(type: RunKonanTest) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
task inline0(type: RunKonanTest) {
|
task inline0(type: RunKonanTest) {
|
||||||
goldValue = "Ok\n3\n"
|
goldValue = "84\n"
|
||||||
source = "codegen/inline/inline0.kt"
|
source = "codegen/inline/inline0.kt"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
@Suppress("NOTHING_TO_INLINE")
|
@Suppress("NOTHING_TO_INLINE")
|
||||||
inline fun foo() {
|
inline fun foo(i1: Int, j1: Int): Int {
|
||||||
println("Ok")
|
return i1 + j1
|
||||||
}
|
}
|
||||||
|
|
||||||
fun bar(i: Int, j: Int): Int {
|
fun bar(i: Int, j: Int): Int {
|
||||||
foo()
|
return i + foo(i, j)
|
||||||
return i + j
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
println(bar(1, 2).toString())
|
println(bar(41, 2).toString())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user