Last change
on this file was 1389, checked in by bird, 21 years ago |
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
305 bytes
|
Line | |
---|
1 | // Regression test for gcj crash, when compiled with -O2 on
|
---|
2 | // i686-pc-linux-gnu.
|
---|
3 | public class T20020604
|
---|
4 | {
|
---|
5 | static double d2 = 0.0;
|
---|
6 |
|
---|
7 | static Object lockObject = new Object();
|
---|
8 |
|
---|
9 | public static double f(double d1) {
|
---|
10 |
|
---|
11 | synchronized (lockObject){
|
---|
12 | d2 = Math.max(d1, d2);
|
---|
13 | }
|
---|
14 |
|
---|
15 | return d2;
|
---|
16 | }
|
---|
17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.