/test/language/simplify/inlining/test_inlining10.e

http://github.com/tybor/Liberty · Specman e · 62 lines · 33 code · 8 blank · 21 comment · 1 complexity · ac23b9d483a3ae5bbed622b2d6e7e100 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_INLINING10
  5. create {}
  6. make
  7. feature {ANY}
  8. a1, a2, a3, a4: like Current
  9. make
  10. do
  11. a1 := Current
  12. a2 := Current
  13. a3 := Current
  14. a4 := Current
  15. foo_a4
  16. if a1 /= Void then
  17. std_output.put_string("TEST_INLINING10: ERROR Test #1%N")
  18. end
  19. end
  20. foo_a1
  21. do
  22. a1 := Void
  23. end
  24. foo_a2
  25. do
  26. a2.foo_a1
  27. end
  28. foo_a3
  29. do
  30. a3.foo_a2
  31. end
  32. foo_a4
  33. do
  34. a4.foo_a3
  35. end
  36. end -- class TEST_INLINING10
  37. --
  38. -- ------------------------------------------------------------------------------------------------------------------------------
  39. -- Copyright notice below. Please read.
  40. --
  41. -- SmartEiffel is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License,
  42. -- as published by the Free Software Foundation; either version 2, or (at your option) any later version.
  43. -- SmartEiffel is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty
  44. -- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have
  45. -- received a copy of the GNU General Public License along with SmartEiffel; see the file COPYING. If not, write to the Free
  46. -- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
  47. --
  48. -- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P. - University of Nancy 1 - FRANCE
  49. -- Copyright(C) 2003-2006: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE
  50. --
  51. -- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN
  52. --
  53. -- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr
  54. -- ------------------------------------------------------------------------------------------------------------------------------