annotate tests/code/struct_7.d @ 187:08b6ce45b456

Changed the way static arrays are represented Now uses [3 x i32] rather than [3 x i32]*, and when using constants they are copied before use. Also dixed a test or two
author Anders Halager <halager@gmail.com>
date Fri, 25 Jul 2008 12:53:58 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
187
08b6ce45b456 Changed the way static arrays are represented
Anders Halager <halager@gmail.com>
parents:
diff changeset
1 struct A { int a; }
08b6ce45b456 Changed the way static arrays are represented
Anders Halager <halager@gmail.com>
parents:
diff changeset
2 A f()
08b6ce45b456 Changed the way static arrays are represented
Anders Halager <halager@gmail.com>
parents:
diff changeset
3 {
08b6ce45b456 Changed the way static arrays are represented
Anders Halager <halager@gmail.com>
parents:
diff changeset
4 A a;
08b6ce45b456 Changed the way static arrays are represented
Anders Halager <halager@gmail.com>
parents:
diff changeset
5 return a;
08b6ce45b456 Changed the way static arrays are represented
Anders Halager <halager@gmail.com>
parents:
diff changeset
6 }
08b6ce45b456 Changed the way static arrays are represented
Anders Halager <halager@gmail.com>
parents:
diff changeset
7
08b6ce45b456 Changed the way static arrays are represented
Anders Halager <halager@gmail.com>
parents:
diff changeset
8 void main() {
08b6ce45b456 Changed the way static arrays are represented
Anders Halager <halager@gmail.com>
parents:
diff changeset
9 A a = f();
08b6ce45b456 Changed the way static arrays are represented
Anders Halager <halager@gmail.com>
parents:
diff changeset
10 }
08b6ce45b456 Changed the way static arrays are represented
Anders Halager <halager@gmail.com>
parents:
diff changeset
11