# HG changeset patch # User Thomas Wuerthinger # Date 1362477813 -3600 # Node ID 47a7e8d8053684bfb060b1a0ff4ac59fa69eace9 # Parent 3362be58312a2bab3878e8582d4030aad858fd17 Added new basic array PTX test. diff -r 3362be58312a -r 47a7e8d80536 graal/com.oracle.graal.compiler.ptx.test/src/com/oracle/graal/compiler/ptx/test/BasicPTXTest.java --- a/graal/com.oracle.graal.compiler.ptx.test/src/com/oracle/graal/compiler/ptx/test/BasicPTXTest.java Tue Mar 05 11:02:01 2013 +0100 +++ b/graal/com.oracle.graal.compiler.ptx.test/src/com/oracle/graal/compiler/ptx/test/BasicPTXTest.java Tue Mar 05 11:03:33 2013 +0100 @@ -42,13 +42,21 @@ public class BasicPTXTest extends GraalCompilerTest { @Test - public void test1() { - test("test1Snippet"); + public void testAdd() { + test("testAddSnippet"); + } + + public static int testAddSnippet(int a) { + return a + 1; } - @SuppressWarnings("all") - public static int test1Snippet(int a) { - return a + 1; + @Test + public void testArray() { + test("testArraySnippet"); + } + + public static int testArraySnippet(int[] array) { + return array[0]; } private void test(String snippet) {