diff options
author | Andrew Haley <aph@redhat.com> | 2016-09-30 16:24:48 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2016-09-30 16:24:48 +0000 |
commit | 07b78716af6a9d7c9fd1e94d9baf94a52c873947 (patch) | |
tree | 3f22b3241c513ad168c8353805614ae1249410f4 /libjava/testsuite/libjava.lang/err3.java | |
parent | eae993948bae8b788c53772bcb9217c063716f93 (diff) | |
download | gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.zip gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.tar.gz gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.tar.bz2 |
Makefile.def: Remove libjava.
2016-09-30 Andrew Haley <aph@redhat.com>
* Makefile.def: Remove libjava.
* Makefile.tpl: Likewise.
* Makefile.in: Regenerate.
* configure.ac: Likewise.
* configure: Likewise.
* gcc/java: Remove.
* libjava: Likewise.
From-SVN: r240662
Diffstat (limited to 'libjava/testsuite/libjava.lang/err3.java')
-rw-r--r-- | libjava/testsuite/libjava.lang/err3.java | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/libjava/testsuite/libjava.lang/err3.java b/libjava/testsuite/libjava.lang/err3.java deleted file mode 100644 index 17535b8..0000000 --- a/libjava/testsuite/libjava.lang/err3.java +++ /dev/null @@ -1,34 +0,0 @@ -/*--------------------------------------------------------------------------*/ -/* File name : err3.java */ -/* : */ -/* Cause : Evaluation sequence of the formula which used */ -/* : the substitution operator is not performed correctly. */ -/* : */ -/* Message : NG1:[27]-->[9] */ -/* : NG2:[27]-->[9] */ -/* : */ -/* Note : JLS 15.6 Evaluation Order (p305) */ -/* S15.6.1 Evaluate Left-Hand Operand First */ -/* : A formula should be evaluated to 9*3 instead of 3*3. */ -/*--------------------------------------------------------------------------*/ - -public class err3 { - public static void main(String[] args) { - int x = 9; - x *= (x = 3); - if ( x == 27 ) { - System.out.println("OK1"); - } else { - System.out.println("NG1:[27]-->["+x+"]"); - } - - int y = 9; - y = y * (y = 3); - if ( y == 27 ) { - System.out.println("OK2"); - } else { - System.out.println("NG2:[27]-->["+y+"]"); - } - } -} - |