X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=libjava%2Ftestsuite%2Flibjava.lang%2FDivide_1.java;fp=libjava%2Ftestsuite%2Flibjava.lang%2FDivide_1.java;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=50db00935ba32d0ba6af6e2bd490dca142f1b6ba;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/libjava/testsuite/libjava.lang/Divide_1.java b/libjava/testsuite/libjava.lang/Divide_1.java deleted file mode 100644 index 50db0093..00000000 --- a/libjava/testsuite/libjava.lang/Divide_1.java +++ /dev/null @@ -1,203 +0,0 @@ -public class Divide_1 -{ - static int b = Integer.parseInt ("-1"); - int b1 = Integer.parseInt ("-1"); - static int zero = Integer.parseInt ("0"); - - void probe_1 () - { - try { - int a = Integer.parseInt ("-80000000", 16); - int c = a/b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - int a = Integer.parseInt ("-80000000", 16); - int c = a/-1; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - int a = Integer.parseInt ("-80000000", 16); - int c = a%b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - int a = Integer.parseInt ("-80000000", 16); - int c = a%b1; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - int a = Integer.parseInt ("-80000000", 16); - int c = a%-1; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - int a = Integer.parseInt ("8000", 16); - int b = Integer.parseInt ("0", 16); - int c = a/b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - int a = Integer.parseInt ("8000", 16); - int b = Integer.parseInt ("0", 16); - int c = a%b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - long a = Long.parseLong ("-8000000000000000", 16); - long c = a/b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - long a = Long.parseLong ("-8000000000000000", 16); - long c = a%b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - long a = Long.parseLong ("8000", 16); - long b = Long.parseLong ("0", 16); - long c = a/b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - long a = Long.parseLong ("8000", 16); - long b = Long.parseLong ("0", 16); - long c = a%b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - } - - void probe_2 () - { - try { - int a = -0x80000000; - int c = a/b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - int a = -0x80000000; - int c = a/-1; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - int a = -0x80000000; - int c = a%b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - int a = -0x80000000; - int c = a%b1; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - int a = -0x80000000; - int c = a%-1; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - int a = 0x8000; - int b = 0; - int c = a/b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - int a = 0x8000; - int b = 0; - int c = a%b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - long a = -0x7fffffffffffffffL - 1; - long c = a/b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - long a = -0x7fffffffffffffffL - 1; - long c = a%b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - long a = 0x8000; - long b = 0; - long c = a/b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - long a = 0x8000; - long b = 0; - long c = a%b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - } - - public static void main (String[] args) - { - Divide_1 d = new Divide_1 (); - d.probe_1 (); - d.probe_2 (); - } -}