From 5af5f4f5ae83eb2f61aaaa503f507ce433ef52f2 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Mon, 19 Nov 2007 22:25:49 +0000 Subject: [PATCH] test file --- Robust/src/Tests/Prefetch/ArrayTest.java | 32 ++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Robust/src/Tests/Prefetch/ArrayTest.java diff --git a/Robust/src/Tests/Prefetch/ArrayTest.java b/Robust/src/Tests/Prefetch/ArrayTest.java new file mode 100644 index 00000000..dde8f7b6 --- /dev/null +++ b/Robust/src/Tests/Prefetch/ArrayTest.java @@ -0,0 +1,32 @@ +public class ArrayTest { + Item x; + public ArrayTest() { + } + + public static void main(String[] args) { + ArrayTest[] n=new ArrayTest[10]; + for(int i=0;i<10;i++) { + n[i]=new ArrayTest(); + n[i].x=new Item(); + n[i].x.i=new Integer(10); + } + addItems(n); + } + + public static int addItems(ArrayTest [] array) { + int sum=0; + for(int i=0;i