Object_wait01.java revision 12651:6ef01bd40ce2
1218792Snp/*
2295778Snp * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
3218792Snp * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4218792Snp *
5218792Snp * This code is free software; you can redistribute it and/or modify it
6218792Snp * under the terms of the GNU General Public License version 2 only, as
7218792Snp * published by the Free Software Foundation.
8218792Snp *
9218792Snp * This code is distributed in the hope that it will be useful, but WITHOUT
10218792Snp * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11218792Snp * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12218792Snp * version 2 for more details (a copy is included in the LICENSE file that
13218792Snp * accompanied this code).
14218792Snp *
15218792Snp * You should have received a copy of the GNU General Public License version
16218792Snp * 2 along with this work; if not, write to the Free Software Foundation,
17218792Snp * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18218792Snp *
19218792Snp * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20218792Snp * or visit www.oracle.com if you need additional information or have any
21218792Snp * questions.
22218792Snp */
23218792Snp/*
24218792Snp */
25218792Snppackage org.graalvm.compiler.jtt.lang;
26218792Snp
27218792Snpimport org.junit.Test;
28218792Snp
29218792Snpimport org.graalvm.compiler.jtt.JTTTest;
30218792Snp
31218792Snppublic final class Object_wait01 extends JTTTest {
32218792Snp
33218792Snp    static final Object object = new Object();
34218792Snp
35218792Snp    public static boolean test() throws InterruptedException {
36218792Snp        object.wait();
37218792Snp        return true;
38218792Snp    }
39218792Snp
40218792Snp    @Test
41218792Snp    public void run0() throws Throwable {
42218792Snp        runTest("test");
43218792Snp    }
44218792Snp
45218792Snp}
46218792Snp