Skip to content
Snippets Groups Projects
Commit 2a5d7309 authored by Gary Frost's avatar Gary Frost
Browse files

Added test cases for access to elements of multi dimensional arrays.

http://code.google.com/p/aparapi/issues/detail?id=10

We need to test both accesses and assignments.
parent b344e6a3
No related branches found
No related tags found
No related merge requests found
...@@ -4,9 +4,7 @@ public class Access2DIntArray{ ...@@ -4,9 +4,7 @@ public class Access2DIntArray{
int[][] ints = new int[1024][]; int[][] ints = new int[1024][];
public void run() { public void run() {
for (int i = 0; i < 1024; i++) { int value= ints[0][0];
ints[i][0] = 1;
}
} }
} }
/**{Throws{ClassParseException}Throws}**/ /**{Throws{ClassParseException}Throws}**/
package com.amd.aparapi.test;
public class Assign2DIntArray{
int[][] ints = new int[1024][];
public void run() {
ints[0][0] = 1;
}
}
/**{Throws{ClassParseException}Throws}**/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment