/test/language/simplify/test_simplify07.e
Specman e | 57 lines | 29 code | 4 blank | 24 comment | 2 complexity | f07a4f32ffbc9c3c70bfe21e094e866a 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_SIMPLIFY07 5 -- 6 -- To check that infix calls are inlined too (attempt to fix SZ:209:). 7 -- 8 9insert 10 EIFFELTEST_TOOLS 11 12create {} 13 make 14 15feature {ANY} 16 make 17 local 18 string1, string2: STRING; r: BOOLEAN; aux1, aux2: AUX_SIMPLIFY07 19 do 20 string1 := "hello" 21 string2 := "hi" 22 r := string1 <= string2 23 create aux1 24 create aux2 25 if aux1 <= aux2 then 26 assert(assert_counter.item = 0) 27 else 28 c_inline_c("#1 in boost_simplify07") 29 end 30 assert(assert_counter.item = 1) 31 if aux1.direct_call(aux2) then 32 assert(assert_counter.item = 2) 33 else 34 c_inline_c("#2 in boost_simplify07") 35 end 36 assert(assert_counter.item = 3) 37 end 38 39end -- class TEST_SIMPLIFY07 40-- 41-- ------------------------------------------------------------------------------------------------------------------------------ 42-- Copyright notice below. Please read. 43-- 44-- SmartEiffel is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, 45-- as published by the Free Software Foundation; either version 2, or (at your option) any later version. 46-- SmartEiffel is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty 47-- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have 48-- received a copy of the GNU General Public License along with SmartEiffel; see the file COPYING. If not, write to the Free 49-- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 50-- 51-- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P. - University of Nancy 1 - FRANCE 52-- Copyright(C) 2003-2006: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE 53-- 54-- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN 55-- 56-- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr 57-- ------------------------------------------------------------------------------------------------------------------------------