Mercurial > projects > dstress
annotate run/s/struct_23_G.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | 4c00dcf48a0c |
children |
rev | line source |
---|---|
821 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Chris Miller <chris@dprogramming.com> | |
6 // @date@ 2006-02-07 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6182 |
821 | 8 |
9 module dstress.run.s.struct_23_G; | |
10 | |
11 struct Foo { | |
12 Foo* f; | |
13 } | |
14 | |
15 int main(){ | |
16 Foo f; | |
17 assert(f.f is null); | |
18 | |
19 f.f = &f; | |
20 assert(*f.f == f); | |
21 | |
22 return 0; | |
23 } |