annotate tests/mini/bug39.d @ 978:6a32d2e18175

Fix a latent bug in the asm code. I think that technically, using "*m0" instead of "*0" allows LLVM to pick between using the same memory as output 0 and using a new memory location. (So far I haven't been able to construct a testcase that actually breaks because of this, though)
author Frits van Bommel <fvbommel wxs.nl>
date Wed, 18 Feb 2009 03:38:12 +0100
parents 1bb99290e03a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
72
d7e764e62462 [svn r76] Fixed: TypeInfo for structs.
lindquist
parents:
diff changeset
1 module bug39;
d7e764e62462 [svn r76] Fixed: TypeInfo for structs.
lindquist
parents:
diff changeset
2
d7e764e62462 [svn r76] Fixed: TypeInfo for structs.
lindquist
parents:
diff changeset
3 struct S
d7e764e62462 [svn r76] Fixed: TypeInfo for structs.
lindquist
parents:
diff changeset
4 {
d7e764e62462 [svn r76] Fixed: TypeInfo for structs.
lindquist
parents:
diff changeset
5 long l;
d7e764e62462 [svn r76] Fixed: TypeInfo for structs.
lindquist
parents:
diff changeset
6 }
d7e764e62462 [svn r76] Fixed: TypeInfo for structs.
lindquist
parents:
diff changeset
7
d7e764e62462 [svn r76] Fixed: TypeInfo for structs.
lindquist
parents:
diff changeset
8 void main()
d7e764e62462 [svn r76] Fixed: TypeInfo for structs.
lindquist
parents:
diff changeset
9 {
d7e764e62462 [svn r76] Fixed: TypeInfo for structs.
lindquist
parents:
diff changeset
10 S s;
d7e764e62462 [svn r76] Fixed: TypeInfo for structs.
lindquist
parents:
diff changeset
11 s.l = 23;
d7e764e62462 [svn r76] Fixed: TypeInfo for structs.
lindquist
parents:
diff changeset
12 void* p = &s;
d7e764e62462 [svn r76] Fixed: TypeInfo for structs.
lindquist
parents:
diff changeset
13 }