/*
 * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
 * that can be found in the LICENSE file.
 */

import kotlinx.cinterop.convert
import platform.posix.*

fun foo() {
    println("linked library")
    val size: size_t = 17.convert<size_t>()
    val e = fabs(1.toDouble())
    println("and symbols from posix available: $size; $e")
}
