annotate run/offsetof_07.d @ 1597:8b9d4d2f925a

Fix typos in complex tests. See D bug 614.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 16:53:58 +0200
parents dbb7a0ee8baf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
177
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
1 // $HeadURL$
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
2 // $Date$
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
3 // $Author$
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
4
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
5 module dstress.nocompile.offsetof_07;
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
6
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
7 struct MyStruct{
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
8 int a;
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
9 int b;
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
10 }
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
11
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
12 int main(){
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
13 MyStruct s;
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
14
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
15 assert(MyStruct.a.offsetof >= 0);
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
16 assert(MyStruct.b.offsetof >= 0);
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
17 assert(MyStruct.a.offsetof != MyStruct.b.offsetof);
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
18
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
19 return 0;
dbb7a0ee8baf updated results Linux (dmd-0.108, dmd-0.109)
thomask
parents:
diff changeset
20 }