Retro68/gcc/libjava/testsuite/libjava.lang/Synch.java
Wolfgang Thaller aaf905ce07 add gcc 4.70
2012-03-28 01:13:14 +02:00

18 lines
304 B
Java

public class Synch
{
public synchronized void s()
{
// This call to notify() isn't supposed to cause a
// java.lang.IllegalMonitorStateException.
notify ();
}
public static void main (String[] args)
{
(new Synch()).s();
System.out.println ("Ok");
}
}