diff options
author | Bryce McKinlay <bryce@waitaki.otago.ac.nz> | 2002-05-27 05:47:40 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2002-05-27 06:47:40 +0100 |
commit | 1457a0b52ae505202bd1f341e74e039e0f4a4602 (patch) | |
tree | 7c9518679bd0199d2b3dcf340d67a29609660d7a /libjava/testsuite/libjava.lang | |
parent | e34a3d3120aff236d7709ebf7590d70a5a75a4f4 (diff) | |
download | gcc-1457a0b52ae505202bd1f341e74e039e0f4a4602.zip gcc-1457a0b52ae505202bd1f341e74e039e0f4a4602.tar.gz gcc-1457a0b52ae505202bd1f341e74e039e0f4a4602.tar.bz2 |
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
Diffstat (limited to 'libjava/testsuite/libjava.lang')
-rw-r--r-- | libjava/testsuite/libjava.lang/PR6820.java | 15 | ||||
-rw-r--r-- | libjava/testsuite/libjava.lang/PR6820.out | 2 |
2 files changed, 17 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.lang/PR6820.java b/libjava/testsuite/libjava.lang/PR6820.java new file mode 100644 index 0000000..c505eb2 --- /dev/null +++ b/libjava/testsuite/libjava.lang/PR6820.java @@ -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); + } +} + diff --git a/libjava/testsuite/libjava.lang/PR6820.out b/libjava/testsuite/libjava.lang/PR6820.out new file mode 100644 index 0000000..836bd5c --- /dev/null +++ b/libjava/testsuite/libjava.lang/PR6820.out @@ -0,0 +1,2 @@ +a=10 b=11 +a=10 b=11 |