/test/language/unclassified/jvm/test_jvm23.e

http://github.com/tybor/Liberty · Specman e · 71 lines · 45 code · 5 blank · 21 comment · 0 complexity · 00550b523152ba74084c919e074b39b1 MD5 · raw file

  1. -- This file is part of SmartEiffel The GNU Eiffel Compiler Tools and Libraries.
  2. -- See the Copyright notice at the end of this file.
  3. --
  4. class TEST_JVM23
  5. inherit
  6. ANY
  7. create {}
  8. make
  9. feature {ANY}
  10. make
  11. do
  12. foo(1, 2, 'c', Current)
  13. end
  14. feature {}
  15. foo (v1, v2: INTEGER; c1: CHARACTER; o1: ANY)
  16. local
  17. lv1, lv2: INTEGER; lc1: CHARACTER; lo1: ANY
  18. do
  19. check
  20. lv1 = 0
  21. lv2 = 0
  22. lc1 = '%U'
  23. lo1 = Void
  24. end
  25. lv1 := v1
  26. lv2 := v2
  27. lc1 := c1
  28. lo1 := o1
  29. check
  30. v1 = lv1
  31. v2 = lv2
  32. c1 = lc1
  33. o1 = lo1
  34. end
  35. check
  36. lc1 = 'c'
  37. o1 = Current
  38. v1 = 1
  39. v2 = 2
  40. end
  41. check
  42. c1 = 'c'
  43. o1 = Current
  44. v1 = 1
  45. v2 = 2
  46. end
  47. end
  48. end -- class TEST_JVM23
  49. --
  50. -- ------------------------------------------------------------------------------------------------------------------------------
  51. -- Copyright notice below. Please read.
  52. --
  53. -- SmartEiffel is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License,
  54. -- as published by the Free Software Foundation; either version 2, or (at your option) any later version.
  55. -- SmartEiffel is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty
  56. -- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have
  57. -- received a copy of the GNU General Public License along with SmartEiffel; see the file COPYING. If not, write to the Free
  58. -- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
  59. --
  60. -- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P. - University of Nancy 1 - FRANCE
  61. -- Copyright(C) 2003-2006: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE
  62. --
  63. -- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN
  64. --
  65. -- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr
  66. -- ------------------------------------------------------------------------------------------------------------------------------