Mercurial > projects > dstress
annotate nocompile/offsetof_05.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
parents | f87ba6507260 |
children |
rev | line source |
---|---|
172 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // functions are no member fields | |
6 | |
374 | 7 // __DSTRESS_ELINE__ 21 |
8 | |
172 | 9 module dstress.nocompile.offsetof_05; |
10 | |
11 struct MyStruct{ | |
12 int a; | |
13 void test(){ | |
14 } | |
15 int b; | |
16 } | |
17 | |
18 int main(){ | |
19 MyStruct s; | |
20 | |
21 assert(s.test.offsetof >= 0); | |
22 | |
23 return 0; | |
24 } |