Signed-off-by: Vegard Nossum <[email protected]>
---
Makefile | 1 +
regression/jvm/CFGCrashTest.java | 16 ++++++++++++++++
regression/run-suite.sh | 1 +
3 files changed, 18 insertions(+), 0 deletions(-)
create mode 100644 regression/jvm/CFGCrashTest.java
diff --git a/Makefile b/Makefile
index 99d56ac..ede2d0c 100644
--- a/Makefile
+++ b/Makefile
@@ -226,6 +226,7 @@ REGRESSION_TEST_SUITE_CLASSES = \
regression/jvm/ArrayMemberTest.java \
regression/jvm/ArrayTest.java \
regression/jvm/BranchTest.java \
+ regression/jvm/CFGCrashTest.java \
regression/jvm/ClassExceptionsTest.java \
regression/jvm/CloneTest.java \
regression/jvm/ControlTransferTest.java \
diff --git a/regression/jvm/CFGCrashTest.java b/regression/jvm/CFGCrashTest.java
new file mode 100644
index 0000000..7215c75
--- /dev/null
+++ b/regression/jvm/CFGCrashTest.java
@@ -0,0 +1,16 @@
+package jvm;
+
+public class CFGCrashTest extends TestCase {
+ private CFGCrashTest[] x;
+
+ public CFGCrashTest(boolean unused) {
+ if (x == null)
+ x = null;
+
+ x = (x == null ? null : null);
+ }
+
+ public static void main(String[] args) {
+ new CFGCrashTest(false);
+ }
+}
diff --git a/regression/run-suite.sh b/regression/run-suite.sh
index 02e5126..c3f6f7e 100755
--- a/regression/run-suite.sh
+++ b/regression/run-suite.sh
@@ -48,6 +48,7 @@ if [ -z "$CLASS_LIST" ]; then
run_java jvm.ArrayMemberTest 0
run_java jvm.ArrayTest 0
run_java jvm.BranchTest 0
+ run_java jvm.CFGCrashTest 0
run_java jvm.ClassExceptionsTest 0
run_java jvm.CloneTest 0
run_java jvm.ControlTransferTest 0
--
1.6.0.4
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel