Mercurial > projects > dstress
changeset 419:8eb7e6649389
pre recover 2/N
author | thomask |
---|---|
date | Sun, 10 Apr 2005 23:10:35 +0000 |
parents | c848807fdfcb |
children | fe6447cbccea |
files | nocompile/this_07.d |
diffstat | 1 files changed, 30 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/this_07.d Sun Apr 10 23:10:35 2005 +0000 @@ -0,0 +1,30 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Benjamin Herr +// @date@ 2005-04-09 + +// __DSTRESS_ELINE__ 25 + +module dstress.nocompile.this_07; + +class Foo { + this(int i) { + this.i = i; + } + + void f() { + assert(i); + } + + int i; +} + +int main() { + void function() fg = &Foo.f; + + fg(); + + return 0; +}