Mercurial > projects > ldc
annotate tangotests/a.d @ 230:79d8f6b3fbaf trunk
[svn r246] fixed asm4 test
author | lindquist |
---|---|
date | Sat, 07 Jun 2008 21:38:14 +0200 |
parents | 4c577c2b7229 |
children |
rev | line source |
---|---|
132 | 1 class Foo |
2 { | |
3 this(int j) | |
4 { | |
5 i = pi = j; | |
6 } | |
7 | |
8 int i; | |
9 | |
10 private: | |
11 | |
12 int pi; | |
13 } | |
14 | |
15 class Bar : Foo | |
16 { | |
17 this(int j) | |
18 { | |
19 super(j); | |
20 baz = 42; | |
21 } | |
22 | |
23 int baz; | |
24 } | |
25 | |
26 void func() | |
27 { | |
28 auto bar = new Bar(12); | |
29 } | |
149
4c577c2b7229
[svn r155] Fixed a bunch of linkage problems (especially with templates)
lindquist
parents:
132
diff
changeset
|
30 |
4c577c2b7229
[svn r155] Fixed a bunch of linkage problems (especially with templates)
lindquist
parents:
132
diff
changeset
|
31 void main() |
4c577c2b7229
[svn r155] Fixed a bunch of linkage problems (especially with templates)
lindquist
parents:
132
diff
changeset
|
32 { |
4c577c2b7229
[svn r155] Fixed a bunch of linkage problems (especially with templates)
lindquist
parents:
132
diff
changeset
|
33 func(); |
4c577c2b7229
[svn r155] Fixed a bunch of linkage problems (especially with templates)
lindquist
parents:
132
diff
changeset
|
34 } |