harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r424458 - /incubator/harmony/enhanced/drlvm/trunk/vm/tests/smoke/StackTest.java
Date Fri, 21 Jul 2006 21:15:36 GMT
Author: geirm
Date: Fri Jul 21 14:15:36 2006
New Revision: 424458

URL: http://svn.apache.org/viewvc?rev=424458&view=rev
Log:
test for stack fix

Added:
    incubator/harmony/enhanced/drlvm/trunk/vm/tests/smoke/StackTest.java   (with props)

Added: incubator/harmony/enhanced/drlvm/trunk/vm/tests/smoke/StackTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/tests/smoke/StackTest.java?rev=424458&view=auto
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/tests/smoke/StackTest.java (added)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/tests/smoke/StackTest.java Fri Jul 21 14:15:36
2006
@@ -0,0 +1,32 @@
+/*
+ *  Copyright 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+public class StackTest {
+
+    static int depth = 0;
+
+    public static void func() {
+        depth++;
+        func();
+    }
+
+    public static void main(String[] args) {
+        try {
+            func();
+        } catch (Throwable th) {
+            System.out.println("PASS : First SOE depth = " + depth + " : " + th);
+        }
+    }
+}

Propchange: incubator/harmony/enhanced/drlvm/trunk/vm/tests/smoke/StackTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message