Mercurial > projects > dstress
annotate run/t/typedef_07_A.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | 4b941e2f6d4f |
children |
rev | line source |
---|---|
543 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Mizuno Hiroki <hiroki1124@hotmail.com> | |
6 // @date@ 2005-05-16 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3991 |
543 | 8 |
9 module dstress.run.t.typedef_07_A; | |
10 | |
11 struct Org{ | |
12 int i; | |
13 } | |
14 | |
15 typedef Org Ali; | |
16 | |
17 int main(){ | |
18 Ali a; | |
19 | |
20 assert(a.i==0); | |
21 a.i=2; | |
22 assert(a.i==2); | |
23 | |
24 return 0; | |
25 } | |
26 |