annotate tests/mini/structs6.d @ 979:523bf4f166bc

Fix some assembler issues: The assembler was miscompiling "add" (specifically, the "add reg/mem, imm" variations). The change that caused this seems to have been made because without it, some "add"s didn't compile at all. This patch reverts the previous change, and makes sure assembler operands are remapped correctly even though the input operands auto-generated due to updating operations aren't explicitly used.
author Frits van Bommel <fvbommel wxs.nl>
date Wed, 18 Feb 2009 21:46:14 +0100
parents 1bb99290e03a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30
881158a93592 [svn r34] * Fixed passing a struct literal as function argument
lindquist
parents:
diff changeset
1 module structs6;
881158a93592 [svn r34] * Fixed passing a struct literal as function argument
lindquist
parents:
diff changeset
2
881158a93592 [svn r34] * Fixed passing a struct literal as function argument
lindquist
parents:
diff changeset
3 struct S
881158a93592 [svn r34] * Fixed passing a struct literal as function argument
lindquist
parents:
diff changeset
4 {
881158a93592 [svn r34] * Fixed passing a struct literal as function argument
lindquist
parents:
diff changeset
5 float f;
881158a93592 [svn r34] * Fixed passing a struct literal as function argument
lindquist
parents:
diff changeset
6 }
881158a93592 [svn r34] * Fixed passing a struct literal as function argument
lindquist
parents:
diff changeset
7
881158a93592 [svn r34] * Fixed passing a struct literal as function argument
lindquist
parents:
diff changeset
8 void func(S s)
881158a93592 [svn r34] * Fixed passing a struct literal as function argument
lindquist
parents:
diff changeset
9 {
881158a93592 [svn r34] * Fixed passing a struct literal as function argument
lindquist
parents:
diff changeset
10 }
881158a93592 [svn r34] * Fixed passing a struct literal as function argument
lindquist
parents:
diff changeset
11
881158a93592 [svn r34] * Fixed passing a struct literal as function argument
lindquist
parents:
diff changeset
12 void main()
881158a93592 [svn r34] * Fixed passing a struct literal as function argument
lindquist
parents:
diff changeset
13 {
881158a93592 [svn r34] * Fixed passing a struct literal as function argument
lindquist
parents:
diff changeset
14 func(S());
881158a93592 [svn r34] * Fixed passing a struct literal as function argument
lindquist
parents:
diff changeset
15 }