blob: b3d5d3cc5394699c918cd6bb2a22272d1ac01673 [file] [log] [blame]
// Copyright (c) 2021, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.kotlin.metadata.unit_primitive_app
import com.android.tools.r8.kotlin.metadata.unit_primitive_lib.Lib
import kotlin.reflect.full.declaredFunctions
fun main() {
var lib = Lib();
lib::class.declaredFunctions.forEach({
println(it)
var msg = it.call(lib)
if (msg is IntArray) {
println(msg[0])
} else {
println(msg)
}
})
}