/test/language/agent/test_agent41.e
Specman e | 61 lines | 32 code | 5 blank | 24 comment | 0 complexity | eca149f9151d2ae729b291dbaf6843ee 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_AGENT41 5 -- SZ:232: 6 -- for marking of base (current) parameter 7 8create {} 9 make 10 11feature {} 12 make 13 local 14 mem: MEMORY; aux: AUX_AGENT41 15 do 16 create aux 17 doit := aux.get_agent 18 aux := Void 19 doit.call([]) 20 generate_garbage 21 -- no error if this is commented out 22 mem.collection_on 23 mem.full_collect 24 doit.call([]) 25 end 26 27 doit: PROCEDURE[TUPLE] 28 29 generate_garbage 30 local 31 i: INTEGER; s: STRING 32 do 33 from 34 i := 1 35 until 36 i = 10000 37 loop 38 create s.make_from_string("quark ends here") 39 i := i + 1 40 end 41 end 42 43end -- class TEST_AGENT41 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-- ------------------------------------------------------------------------------------------------------------------------------