annotate run/o/offsetof_79.d @ 625:ec5f4198256b

updated <class>.ofsettof tests Ben Hinkle <ben.hinkle@gmail.com> 2005-07-04 news:dac0ps$1hh4$1@digitaldaemon.com
author thomask
date Sat, 13 Aug 2005 20:24:18 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
625
ec5f4198256b updated <class>.ofsettof tests
thomask
parents:
diff changeset
1 // $HeadURL$
ec5f4198256b updated <class>.ofsettof tests
thomask
parents:
diff changeset
2 // $Date$
ec5f4198256b updated <class>.ofsettof tests
thomask
parents:
diff changeset
3 // $Author$
ec5f4198256b updated <class>.ofsettof tests
thomask
parents:
diff changeset
4
ec5f4198256b updated <class>.ofsettof tests
thomask
parents:
diff changeset
5 module dstress.run.o.offsetof_79;
ec5f4198256b updated <class>.ofsettof tests
thomask
parents:
diff changeset
6
ec5f4198256b updated <class>.ofsettof tests
thomask
parents:
diff changeset
7 class MyClass{
ec5f4198256b updated <class>.ofsettof tests
thomask
parents:
diff changeset
8 int a;
ec5f4198256b updated <class>.ofsettof tests
thomask
parents:
diff changeset
9 }
ec5f4198256b updated <class>.ofsettof tests
thomask
parents:
diff changeset
10
ec5f4198256b updated <class>.ofsettof tests
thomask
parents:
diff changeset
11 int main(){
ec5f4198256b updated <class>.ofsettof tests
thomask
parents:
diff changeset
12 MyClass o = new MyClass();
ec5f4198256b updated <class>.ofsettof tests
thomask
parents:
diff changeset
13
ec5f4198256b updated <class>.ofsettof tests
thomask
parents:
diff changeset
14 assert(MyClass.test.offsetof >= 0);
ec5f4198256b updated <class>.ofsettof tests
thomask
parents:
diff changeset
15
ec5f4198256b updated <class>.ofsettof tests
thomask
parents:
diff changeset
16 return 0;
ec5f4198256b updated <class>.ofsettof tests
thomask
parents:
diff changeset
17 }