Mercurial > projects > dstress
changeset 829:31e288138e9d
added DMD-0.146 results
author | thomask |
---|---|
date | Sun, 12 Feb 2006 23:40:17 +0000 |
parents | 083e64ed4dad |
children | 726e10340496 |
files | run/align_12.d |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/run/align_12.d Sun Feb 12 08:21:58 2006 +0000 +++ b/run/align_12.d Sun Feb 12 23:40:17 2006 +0000 @@ -15,17 +15,16 @@ align(2) struct S{ byte a; - byte b; + int b; } int main(){ S s; version(testA){ - assert(&s.a-&s.b==-2); + assert((cast(void*)&s.a)-(cast(void*)&s.b)==-2); }else{ pragma(msg, "no C alignment data present"); static assert(0); } return 0; } -