gcc/libjava/testsuite/libjava.lang/pr16789.java
Tom Tromey 0a08595abd re PR java/16789 (ICE in force_evaluation_order() on valid code)
PR java/16789:
	* testsuite/libjava.lang/pr16789.out: New file.
	* testsuite/libjava.lang/pr16789.java: New file.

From-SVN: r88046
2004-09-24 15:41:17 +00:00

16 lines
273 B
Java

// gcj used to generate incorrect bytecode for
// staticMethod().staticMethod()
public class pr16789
{
public void foo()
{
System.out.println(Thread.currentThread().holdsLock(this));
}
public static void main(String[] args)
{
new pr16789().foo();
}
}