repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
libjava
/
testsuite
/
libjava.compile
/
T20020604.java
blob
fba68c20c487be42c546b1edee37323c808e734c
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
}