Mercurial > projects > dstress
diff run/offsetof_53.d @ 302:41de5acbb735
offsetof
<derick_eddington@nospam.yahoo.nospam.com>
2005-03-06
news:d0dfb6$1mrv$1@digitaldaemon.com
nntp://news.digitalmars.com/digitalmars.D.bugs/3091
author | thomask |
---|---|
date | Sat, 12 Mar 2005 10:54:19 +0000 |
parents | |
children | 52c9e86b6486 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/offsetof_53.d Sat Mar 12 10:54:19 2005 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <derick_eddington@nospam.yahoo.nospam.com> +// @date@ 2005-03-06 +// @uri@ news:d0dfb6$1mrv$1@digitaldaemon.com +// @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/3091 + +module dstress.run.offsetof_53; + +struct MyStruct{ + cfloat x; +} + +int main(){ + size_t t = MyStruct.x.offsetof; + return 0; +}