Mercurial > projects > dstress
diff run/bug_20050418_02.d @ 447:3522652ca5f0
Kris <fu@bar.com>
2005-04-18
news:d3rulu$bn9$1@digitaldaemon.com
author | thomask |
---|---|
date | Mon, 18 Apr 2005 07:49:34 +0000 |
parents | |
children | 1e6afb94ce6d |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/bug_20050418_02.d Mon Apr 18 07:49:34 2005 +0000 @@ -0,0 +1,33 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Kris <fu@bar.com> +// @date@ 2005-04-18 +// @uri@ news:d3rulu$bn9$1@digitaldaemon.com + +module dstress.run.bug_20050418_02; + +class Buffer{ + uint limit; + int position; + + invariant{ + assert (position <= limit); + } +} + +class Mapped : Buffer{ + this(){ + } +} + +int main(){ + Buffer a = new Buffer(); + Mapped b = new Mapped(); + Buffer c = new Mapped(); + assert(a); + assert(b); + assert(c); + return 0; +}