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