PageRenderTime 15ms CodeModel.GetById 8ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/test/language/unclassified/aux_os2a.e

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