annotate nocompile/offset_02.d @ 171:e2ba37f5b797

added .offset deprication tests
author thomask
date Wed, 01 Dec 2004 12:41:29 +0000
parents
children e5bbb877feb9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
171
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
1 // $HeadURL$
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
2 // $Date$
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
3 // Author$
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
4
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
5 module dstress.nocompile.offset_02;
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
6
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
7 class MyClass{
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
8 int a;
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
9 int b;
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
10 }
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
11
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
12 int main(){
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
13 MyClass c;
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
14
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
15 assert(c.a.offset >= 0);
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
16 assert(c.b.offset >= 0);
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
17 assert(c.a.offset != c.b.offset);
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
18
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
19 return 0;
e2ba37f5b797 added .offset deprication tests
thomask
parents:
diff changeset
20 }