Mercurial > projects > dstress
annotate run/o/offsetof_80_A.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | 9dcac8d4e97f |
children |
rev | line source |
---|---|
626 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ xs0 <xs0@xs0.com> | |
6 // @date@ 2005-08-10 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=4752 |
626 | 8 // @desc@ offsetof doesn't work on method-local struct members |
9 | |
10 module dstress.run.o.offsetof_80_A; | |
11 | |
12 int test(){ | |
13 struct Struct{ | |
14 int i; | |
1091 | 15 } |
16 | |
626 | 17 return Struct.i.offsetof; |
18 } | |
19 | |
20 int main(){ | |
21 test(); | |
22 return 0; | |
1091 | 23 } |