New test code.

From-SVN: r32336
This commit is contained in:
Anthony Green 2000-03-05 07:25:14 +00:00 committed by Anthony Green
parent 7470e8d74c
commit da1ee10da1
3 changed files with 40 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2000-03-04 Anthony Green <green@redhat.com>
* libjava.lang/PR160.java: New file.
* libjava.lang/PR160.out: New file.
2000-02-28 Mo DeJong <mdejong@cygnus.com>
* libjava.compile/static_inner.java: New file.

View File

@ -0,0 +1,34 @@
public class PR160
{
static final int len = 100;
public static void main(String args[])
{
double[] a = new double[len];
double[] b = new double[len];
for (int i = 0; i < len ; i++)
{
a[i] = 0.65;
}
System.arraycopy(a, 0, b, 0, len);
boolean errors = false;
for (int i = 0; i < len ; i++)
{
if (a[i] != b[i])
{
System.out.println("ERROR! " + a[i] + " != "
+ b[i] + " at index " + i);
errors = true;
}
}
if (!errors)
System.out.println("ok");
}
}

View File

@ -0,0 +1 @@
ok