PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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