summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/PR160.java
blob: 77526ef521935bdb6fb40b97b75d616ea25eb192 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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");
    
  }
}