From: bdemsky Date: Mon, 19 Nov 2007 22:25:49 +0000 (+0000) Subject: test file X-Git-Tag: preEdgeChange~361 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5af5f4f5ae83eb2f61aaaa503f507ce433ef52f2;p=IRC.git test file --- 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