Mercurial > hg > truffle
comparison graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/except/BC_checkcast6.java @ 7282:390448a6b535
converted the JTT tests to use the GraalCompilerTest framework which offers more control over what is compiled and executed
the HP_series and FloatingReads tests have been disabled temporarily
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 20 Dec 2012 14:59:57 +0100 |
parents | e808627bd16f |
children | 64dcb92ee75a |
comparison
equal
deleted
inserted
replaced
7281:e960cda050d7 | 7282:390448a6b535 |
---|---|
20 * or visit www.oracle.com if you need additional information or have any | 20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package com.oracle.graal.jtt.except; | 23 package com.oracle.graal.jtt.except; |
24 | 24 |
25 import com.oracle.graal.jtt.*; | |
25 import org.junit.*; | 26 import org.junit.*; |
26 | 27 |
27 /* | 28 /* |
28 */ | 29 */ |
29 @SuppressWarnings("static-method") | 30 public final class BC_checkcast6 extends JTTTest { |
30 public final class BC_checkcast6 { | |
31 | 31 |
32 static Object object2 = new Object(); | 32 static Object object2 = new Object(); |
33 static Object object3 = ""; | 33 static Object object3 = ""; |
34 static Object object4 = new BC_checkcast6(); | 34 static Object object4 = new BC_checkcast6(); |
35 | 35 |
55 return -1; | 55 return -1; |
56 } | 56 } |
57 | 57 |
58 @Test | 58 @Test |
59 public void run0() throws Throwable { | 59 public void run0() throws Throwable { |
60 Assert.assertEquals(-1, test(0)); | 60 runTest("test", 0); |
61 } | 61 } |
62 | 62 |
63 @Test | 63 @Test |
64 public void run1() throws Throwable { | 64 public void run1() throws Throwable { |
65 Assert.assertEquals(-1, test(1)); | 65 runTest("test", 1); |
66 } | 66 } |
67 | 67 |
68 @Test | 68 @Test |
69 public void run2() throws Throwable { | 69 public void run2() throws Throwable { |
70 Assert.assertEquals(-5, test(2)); | 70 runTest("test", 2); |
71 } | 71 } |
72 | 72 |
73 @Test | 73 @Test |
74 public void run3() throws Throwable { | 74 public void run3() throws Throwable { |
75 Assert.assertEquals(-5, test(3)); | 75 runTest("test", 3); |
76 } | 76 } |
77 | 77 |
78 @Test | 78 @Test |
79 public void run4() throws Throwable { | 79 public void run4() throws Throwable { |
80 Assert.assertEquals(4, test(4)); | 80 runTest("test", 4); |
81 } | 81 } |
82 | 82 |
83 } | 83 } |