Mercurial > projects > dstress
annotate addon/constructor_04_A.d @ 1576:b3e16c86558e
[Issue 1398] New: GDC doesn't generate correct code
<mariusmuja@gmail.com>
2007-08-04
http://d.puremagic.com/issues/show_bug.cgi?id=1398
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:20:08 +0000 |
parents | cb22f2d42678 |
children |
rev | line source |
---|---|
140 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
87
dfbc0188e5aa
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041101173804.4e16f816.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:829
thomask
parents:
diff
changeset
|
5 // @author@ shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> |
dfbc0188e5aa
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041101173804.4e16f816.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:829
thomask
parents:
diff
changeset
|
6 // @date@ 2004-11-01 |
140 | 7 // @uri@ news:20041101173804.4e16f816.s31552@mail.ecc.u-tokyo.ac.jp |
8 // @url@ nntp://digitalmars.com/D.gnu/829 | |
87
dfbc0188e5aa
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041101173804.4e16f816.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:829
thomask
parents:
diff
changeset
|
9 |
dfbc0188e5aa
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041101173804.4e16f816.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:829
thomask
parents:
diff
changeset
|
10 // see dstress.run.constructor_04 |
218 | 11 module addon.constructor_04_A; |
87
dfbc0188e5aa
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041101173804.4e16f816.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:829
thomask
parents:
diff
changeset
|
12 |
dfbc0188e5aa
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041101173804.4e16f816.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:829
thomask
parents:
diff
changeset
|
13 class Base{ |
dfbc0188e5aa
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041101173804.4e16f816.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:829
thomask
parents:
diff
changeset
|
14 this(){ |
dfbc0188e5aa
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041101173804.4e16f816.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:829
thomask
parents:
diff
changeset
|
15 } |
dfbc0188e5aa
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041101173804.4e16f816.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:829
thomask
parents:
diff
changeset
|
16 } |
dfbc0188e5aa
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041101173804.4e16f816.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:829
thomask
parents:
diff
changeset
|
17 |
dfbc0188e5aa
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041101173804.4e16f816.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:829
thomask
parents:
diff
changeset
|
18 class Derived : Base{ |
dfbc0188e5aa
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041101173804.4e16f816.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:829
thomask
parents:
diff
changeset
|
19 private: |
dfbc0188e5aa
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041101173804.4e16f816.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:829
thomask
parents:
diff
changeset
|
20 // constructor will be wrongly generated here, so it is private. |
dfbc0188e5aa
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041101173804.4e16f816.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:829
thomask
parents:
diff
changeset
|
21 } |