diff options
author | Tom Tromey <tromey@cygnus.com> | 1999-07-13 16:20:44 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 1999-07-13 16:20:44 +0000 |
commit | f160279bf858bb9670ff07b7dbb40c001aa05d0d (patch) | |
tree | 0b2e3db83a601fc5902be0f236b440d7cce209ec /libjava/testsuite/libjava.lang/N19990310_3.java | |
parent | e65132c8735949267ae750f00a75da61023772b6 (diff) | |
download | gcc-f160279bf858bb9670ff07b7dbb40c001aa05d0d.zip gcc-f160279bf858bb9670ff07b7dbb40c001aa05d0d.tar.gz gcc-f160279bf858bb9670ff07b7dbb40c001aa05d0d.tar.bz2 |
test.exp: New file.
* libjava.lang/test.exp: New file.
* libjava.lang/err9.out: New file.
* libjava.lang/err9.java: New file.
* libjava.lang/err8.out: New file.
* libjava.lang/err8.java: New file.
* libjava.lang/err7.out: New file.
* libjava.lang/err7.java: New file.
* libjava.lang/err6.out: New file.
* libjava.lang/err6.java: New file.
* libjava.lang/err5.out: New file.
* libjava.lang/err5.java: New file.
* libjava.lang/err4.out: New file.
* libjava.lang/err4.java: New file.
* libjava.lang/err3.out: New file.
* libjava.lang/err3.java: New file.
* libjava.lang/err2.out: New file.
* libjava.lang/err2.java: New file.
* libjava.lang/err13.out: New file.
* libjava.lang/err13.java: New file.
* libjava.lang/err12.out: New file.
* libjava.lang/err12.java: New file.
* libjava.lang/err11.out: New file.
* libjava.lang/err11.java: New file.
* libjava.lang/err10.out: New file.
* libjava.lang/err10.java: New file.
* libjava.lang/err1.out: New file.
* libjava.lang/err1.java: New file.
* libjava.lang/N19990310_5.out: New file.
* libjava.lang/N19990310_5.java: New file.
* libjava.lang/N19990310_4.out: New file.
* libjava.lang/N19990310_4.java: New file.
* libjava.lang/N19990310_3.out: New file.
* libjava.lang/N19990310_3.java: New file.
* libjava.lang/N19990310_02.out: New file.
* libjava.lang/N19990310_02.java: New file.
* libjava.lang/G19990303_02.out: New file.
* libjava.lang/G19990303_02.java: New file.
* libjava.lang/G19990303_01.out: New file.
* libjava.lang/G19990303_01.java: New file.
* libjava.lang/G19990302_02.out: New file.
* libjava.lang/G19990302_02.java: New file.
* libjava.lang/G19990301_01.out: New file.
* libjava.lang/G19990301_01.java: New file.
* libjava.compile/N19990317.java: New file.
* libjava.compile/N19990310_01.java: New file.
* libjava.compile/G19990225_01.java: New file.
* libjava.compile/G19990217_02.java: New file.
* libjava.compile/G19990217_01.java: New file.
* libjava.compile/G19990210_3.java: New file.
* libjava.compile/G19990210_2.java: New file.
* libjava.compile/G19990210_1.java: New file.
From-SVN: r28087
Diffstat (limited to 'libjava/testsuite/libjava.lang/N19990310_3.java')
-rw-r--r-- | libjava/testsuite/libjava.lang/N19990310_3.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.lang/N19990310_3.java b/libjava/testsuite/libjava.lang/N19990310_3.java new file mode 100644 index 0000000..b6dfac2 --- /dev/null +++ b/libjava/testsuite/libjava.lang/N19990310_3.java @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------*/ +/* Name : N19990310_3 */ +/* : */ +/* Cause : Evaluation order miss, when make integer array. */ +/* : */ +/* Message : NG:[4]-->[1] */ +/*--------------------------------------------------------------------------*/ + +public class N19990310_3 { + public static void main(String[] args) { + + int x = 4; + + int ary[][] = new int[x][x=1]; + + if ( ary.length == 4 ) { + System.out.println("OK"); + } else { + System.out.println("NG:[4]-->[" +ary.length+ "]"); + } + } +} + + |