Mercurial > projects > dstress
annotate nocompile/offsetof_06.d @ 1576:b3e16c86558e
[Issue 1398] New: GDC doesn't generate correct code
<mariusmuja@gmail.com>
2007-08-04
http://d.puremagic.com/issues/show_bug.cgi?id=1398
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:20:08 +0000 |
parents | ec5f4198256b |
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_06; |
10 | |
11 class MyClass{ | |
12 int a; | |
13 void test(){ | |
14 } | |
15 int b; | |
16 } | |
17 | |
18 int main(){ | |
19 MyClass o = new MyClass(); | |
20 | |
625 | 21 assert(MyClass.test.offsetof >= 0); |
172 | 22 |
23 return 0; | |
24 } |