/[eiffelstudio]/trunk/eweasel/tests/runtime023/value.e
ViewVC logotype

Contents of /trunk/eweasel/tests/runtime023/value.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 102121 - (show annotations)
Mon Sep 3 11:21:14 2018 UTC (12 months, 1 week ago) by alexk
File size: 513 byte(s)
Changed code to avoid inlining in finalized mode that can conceal the problem.
1 expanded class
2 VALUE
3
4 inherit
5 MEMORY
6 redefine
7 copy,
8 default_create
9 end
10
11 feature {NONE} -- Creation
12
13 default_create
14 -- Initialize with a default value.
15 do
16 create item
17 end
18
19 feature {VALUE} -- Access
20
21 item: TEST
22 -- An object that is moved during GC.
23
24 feature -- Duplication
25
26 copy (other: VALUE)
27 -- <Precursor>
28 do
29 -- Trigger GC to move `other.item`.
30 full_collect
31 -- Use `other.item`.
32 other.item.f
33 -- Make sure the objects are equal.
34 item := other.item
35 end
36
37 end

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.23