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
This commit is contained in:
parent
c261e080ef
commit
18ca9ce723
3 changed files with 21 additions and 0 deletions
9
libjava/testsuite/libjava.compile/PR129_B.java
Normal file
9
libjava/testsuite/libjava.compile/PR129_B.java
Normal file
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
6
libjava/testsuite/libjava.compile/support/PR129_A.java
Normal file
6
libjava/testsuite/libjava.compile/support/PR129_A.java
Normal file
|
@ -0,0 +1,6 @@
|
|||
package support;
|
||||
|
||||
public class PR129_A {
|
||||
public static String[] strArr = { "A", "B", "C" };
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue