Mercurial > projects > dang
annotate tests/code/struct_7.d @ 208:41ccd50e7cbc
Added missing tests
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Tue, 12 Aug 2008 18:21:06 +0200 |
parents | 08b6ce45b456 |
children |
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 |