00e35bed创建于 2024年7月18日历史提交
// EXEC: cjc %import-path %L %l %f
// EXEC: ./main

import io4cj.*
import std.posix.*
import std.io.*
import std.time.*
import std.sync.*
main () {
    let str = Timeout()
    let str1 = str.clearTimeout()
    try {
        let str2 = str.waitUntilNotified(Monitor())
    } catch(e: Exception) {
        println("case pass")
    }
    var es = ""
    try {
        let str3 = str.deadlineNanoTime()
    } catch(e: Exception) {
        es = e.toString()
    }
    if (es != "IllegalArgumentException: No deadline") {
        return 1
    }
    return 0
}