annotate run/offsetof_26.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 |
d3a3e0c251d8 |
children |
|
rev |
line source |
302
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ <derick_eddington@nospam.yahoo.nospam.com>
|
|
6 // @date@ 2005-03-06
|
|
7 // @uri@ news:d0dfb6$1mrv$1@digitaldaemon.com
|
1384
|
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3091
|
302
|
9
|
|
10 module dstress.run.offsetof_26;
|
|
11
|
|
12 struct MyStruct{
|
|
13 uint[] x;
|
|
14 }
|
|
15
|
|
16 int main(){
|
|
17 size_t t = MyStruct.x.offsetof;
|
|
18 return 0;
|
|
19 }
|