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
This commit is contained in:
parent
90424847a6
commit
0a08595abd
3 changed files with 22 additions and 0 deletions
15
libjava/testsuite/libjava.lang/pr16789.java
Normal file
15
libjava/testsuite/libjava.lang/pr16789.java
Normal file
|
@ -0,0 +1,15 @@
|
|||
// 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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue