Mercurial > projects > ldc
annotate tangotests/c.d @ 303:4aa2b6753059 trunk
[svn r324] Small indentation fixes.
Added end of line to complex.cpp.
author | ChristianK |
---|---|
date | Wed, 25 Jun 2008 20:42:30 +0200 |
parents | 68a7dd38c03c |
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 } |