Mercurial > projects > ldc
annotate tangotests/c.d @ 172:68a7dd38c03c trunk
[svn r188] Fixed using a dereferenced pointer argument as both l- and r-value. fixes tango.io.FileRoots.
Reorganized the tangotests dir a bit.
author | lindquist |
---|---|
date | Tue, 06 May 2008 07:26:27 +0200 |
parents | 1700239cab2e |
children |
rev | line source |
---|---|
132 | 1 class Foo |
2 { | |
3 int i; | |
4 } | |
5 | |
6 class Bar : Foo | |
7 { | |
8 int j; | |
9 } | |
10 | |
11 void func() | |
12 { | |
13 scope c = new Bar; | |
14 func2(c); | |
15 } | |
16 | |
17 void func2(Bar c) | |
18 { | |
19 c.i = 123; | |
20 } | |
172
68a7dd38c03c
[svn r188] Fixed using a dereferenced pointer argument as both l- and r-value. fixes tango.io.FileRoots.
lindquist
parents:
132
diff
changeset
|
21 |
68a7dd38c03c
[svn r188] Fixed using a dereferenced pointer argument as both l- and r-value. fixes tango.io.FileRoots.
lindquist
parents:
132
diff
changeset
|
22 void main() |
68a7dd38c03c
[svn r188] Fixed using a dereferenced pointer argument as both l- and r-value. fixes tango.io.FileRoots.
lindquist
parents:
132
diff
changeset
|
23 { |
68a7dd38c03c
[svn r188] Fixed using a dereferenced pointer argument as both l- and r-value. fixes tango.io.FileRoots.
lindquist
parents:
132
diff
changeset
|
24 func(); |
68a7dd38c03c
[svn r188] Fixed using a dereferenced pointer argument as both l- and r-value. fixes tango.io.FileRoots.
lindquist
parents:
132
diff
changeset
|
25 } |