pr21115.java 928 B

1234567891011121314151617181920212223242526272829303132333435
  1. public abstract class pr21115
  2. {
  3. public static void main(String[] args) throws Exception
  4. {
  5. Class c = Class.forName("pr21115I");
  6. Object o = c.newInstance();
  7. pr21115 t = (pr21115) o;
  8. // Try to fill the stack with 0xff.
  9. t.test (0xffffffff, 0xffffffff,
  10. 0xffffffff, 0xffffffff,
  11. 0xffffffff, 0xffffffff,
  12. 0xffffffff, 0xffffffff,
  13. 0xffffffff, 0xffffffff);
  14. // Pass a bunch of false (0) values.
  15. if (t.test (false, false,
  16. false, false,
  17. false, false,
  18. false, false,
  19. false, false))
  20. System.out.println ("FAILED - expecting false return value.");
  21. }
  22. public abstract boolean test(boolean a, boolean b,
  23. boolean c, boolean d,
  24. boolean e, boolean f,
  25. boolean g, boolean h,
  26. boolean i, boolean j);
  27. public abstract boolean test(int a, int b,
  28. int c, int d,
  29. int e, int f,
  30. int g, int h,
  31. int i, int j);
  32. }