mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-29 23:04:12 +08:00
re PR java/6820 (miscompilation of (a,++a) as arguments to final method)
* libjava.lang/PR6820.java: New file. * libjava.lang/PR6820.out: New file. From-SVN: r53908
This commit is contained in:
parent
e34a3d3120
commit
1457a0b52a
@ -1,3 +1,8 @@
|
||||
2002-05-27 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
|
||||
|
||||
* libjava.lang/PR6820.java: New file.
|
||||
* libjava.lang/PR6820.out: New file.
|
||||
|
||||
2002-05-23 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
|
||||
|
||||
* libjava.lang/PR6729.java: New file.
|
||||
|
15
libjava/testsuite/libjava.lang/PR6820.java
Normal file
15
libjava/testsuite/libjava.lang/PR6820.java
Normal file
@ -0,0 +1,15 @@
|
||||
public class PR6820
|
||||
{
|
||||
static void m(int a, int b) {
|
||||
System.out.println("a="+a+" b="+b);
|
||||
}
|
||||
|
||||
static int a = 10;
|
||||
|
||||
public static void main(String[] args) {
|
||||
int b = 10;
|
||||
m(a,++a);
|
||||
m(b,++b);
|
||||
}
|
||||
}
|
||||
|
2
libjava/testsuite/libjava.lang/PR6820.out
Normal file
2
libjava/testsuite/libjava.lang/PR6820.out
Normal file
@ -0,0 +1,2 @@
|
||||
a=10 b=11
|
||||
a=10 b=11
|
Loading…
Reference in New Issue
Block a user