[llvm-commits] CVS: llvm-java/test/Programs/SingleSource/UnitTests/ArrayCopyOverlap.java
Alkis Evlogimenos
alkis at cs.uiuc.edu
Fri Mar 25 18:04:37 PST 2005
Changes in directory llvm-java/test/Programs/SingleSource/UnitTests:
ArrayCopyOverlap.java added (r1.1)
---
Log message:
Add new failing testcase.
---
Diffs of the changes: (+18 -0)
ArrayCopyOverlap.java | 18 ++++++++++++++++++
1 files changed, 18 insertions(+)
Index: llvm-java/test/Programs/SingleSource/UnitTests/ArrayCopyOverlap.java
diff -c /dev/null llvm-java/test/Programs/SingleSource/UnitTests/ArrayCopyOverlap.java:1.1
*** /dev/null Fri Mar 25 20:04:35 2005
--- llvm-java/test/Programs/SingleSource/UnitTests/ArrayCopyOverlap.java Fri Mar 25 20:04:25 2005
***************
*** 0 ****
--- 1,18 ----
+ import java.util.*;
+
+ public class ArrayCopyOverlap
+ {
+ public static Random rand = new Random(0);
+
+ public static void main(String[] args) {
+ byte[] array = new byte[100];
+
+ for (int i = 0; i < array.length; ++i) {
+ array[i] = (byte) rand.nextInt();
+ }
+
+ System.arraycopy(array, 0, array, 23, 59);
+
+ Util.printlnElements(array);
+ }
+ }
More information about the llvm-commits
mailing list