OSDN Git Service

2007-02-13 Andrew Haley <aph@redhat.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Feb 2007 18:25:47 +0000 (18:25 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Feb 2007 18:25:47 +0000 (18:25 +0000)
* testsuite/libjava.lang/Divide_2.out
* testsuite/libjava.lang/Divide_2.java: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121887 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/testsuite/libjava.lang/Divide_2.jar [new file with mode: 0644]
libjava/testsuite/libjava.lang/Divide_2.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/Divide_2.out [new file with mode: 0644]

index 340d74c..9a53848 100644 (file)
@@ -1,3 +1,8 @@
+2007-02-13  Andrew Haley  <aph@redhat.com>
+
+       * testsuite/libjava.lang/Divide_2.out
+       * testsuite/libjava.lang/Divide_2.java: New test.
+
 2007-02-12  Keith Seitz  <keiths@redhat.com>
 
        * jvmti.cc (_Jv_JVMTI_GetStackTrace): Remove cast
diff --git a/libjava/testsuite/libjava.lang/Divide_2.jar b/libjava/testsuite/libjava.lang/Divide_2.jar
new file mode 100644 (file)
index 0000000..f16e8e6
Binary files /dev/null and b/libjava/testsuite/libjava.lang/Divide_2.jar differ
diff --git a/libjava/testsuite/libjava.lang/Divide_2.java b/libjava/testsuite/libjava.lang/Divide_2.java
new file mode 100644 (file)
index 0000000..6f2bac8
--- /dev/null
@@ -0,0 +1,20 @@
+public class Divide_2
+{
+  static void poo()
+  {
+    int n = 4/0;
+  }
+  public static void main(String[] argv)
+  {
+    try
+      {
+       poo();
+      }
+    catch (ArithmeticException _)
+      {
+       return;
+      }
+    
+    throw new RuntimeException();
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/Divide_2.out b/libjava/testsuite/libjava.lang/Divide_2.out
new file mode 100644 (file)
index 0000000..e69de29