From 18ca9ce7234bb110f3a8aaaae334955cf49d17e5 Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Sun, 5 Mar 2000 09:07:27 +0000 Subject: [PATCH] re GNATS gcj/129 (Static array length access bug in gcj) * libjava.compile/PR129_B.java: New file. * libjava.compile/support/PR129_A.java: New file. For PR gcj/129. From-SVN: r32340 --- libjava/testsuite/ChangeLog | 6 ++++++ libjava/testsuite/libjava.compile/PR129_B.java | 9 +++++++++ libjava/testsuite/libjava.compile/support/PR129_A.java | 6 ++++++ 3 files changed, 21 insertions(+) create mode 100644 libjava/testsuite/libjava.compile/PR129_B.java create mode 100644 libjava/testsuite/libjava.compile/support/PR129_A.java diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index fd828dca226..52367ad6271 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2000-03-05 Anthony Green + + * libjava.compile/PR129_B.java: New file. + * libjava.compile/support/PR129_A.java: New file. + For PR gcj/129. + 2000-03-04 Anthony Green * libjava.lang/PR160.java: New file. diff --git a/libjava/testsuite/libjava.compile/PR129_B.java b/libjava/testsuite/libjava.compile/PR129_B.java new file mode 100644 index 00000000000..238df999a27 --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR129_B.java @@ -0,0 +1,9 @@ +import support.PR129_A; + +public class PR129_B { + public static void main ( String[] args ) { + int length = PR129_A.strArr.length; + System.out.println ( "Array length: " + length ); + } +} + diff --git a/libjava/testsuite/libjava.compile/support/PR129_A.java b/libjava/testsuite/libjava.compile/support/PR129_A.java new file mode 100644 index 00000000000..643dad671b8 --- /dev/null +++ b/libjava/testsuite/libjava.compile/support/PR129_A.java @@ -0,0 +1,6 @@ +package support; + +public class PR129_A { + public static String[] strArr = { "A", "B", "C" }; +} + -- 2.30.2