Mercurial > projects > dstress
changeset 177:dbb7a0ee8baf
updated results Linux (dmd-0.108, dmd-0.109)
author | thomask |
---|---|
date | Sun, 05 Dec 2004 23:02:16 +0000 |
parents | 49df706d0a10 |
children | de10c1c21741 |
files | nocompile/offsetof_07.d run/offsetof_07.d todo.txt |
diffstat | 3 files changed, 23 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/nocompile/offsetof_07.d Fri Dec 03 13:53:26 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -module dstress.nocompile.offsetof_07; - -struct MyStruct{ - int a; - int b; -} - -int main(){ - MyStruct s; - - assert(MyStruct.a.offsetof == s.a.offsetof); - assert(MyStruct.b.offsetof == s.a.offsetof); - - return 0; -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/offsetof_07.d Sun Dec 05 23:02:16 2004 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.nocompile.offsetof_07; + +struct MyStruct{ + int a; + int b; +} + +int main(){ + MyStruct s; + + assert(MyStruct.a.offsetof >= 0); + assert(MyStruct.b.offsetof >= 0); + assert(MyStruct.a.offsetof != MyStruct.b.offsetof); + + return 0; +}
--- a/todo.txt Fri Dec 03 13:53:26 2004 +0000 +++ b/todo.txt Sun Dec 05 23:02:16 2004 +0000 @@ -13,6 +13,7 @@ Test cases: * keyword: asm * keyword: in out body +* keyword: in (associative array) * keyword: cent * keyword: cdouble * keyword: cfloat @@ -54,6 +55,8 @@ * IEEE 754 tests +* class (?struct?) allocators + * module initializers & destructors * maximum possible size of source/names/arrays