annotate tests/mini/bug40.d @ 1134:152bd2c804d0

Update comments now that LLVM PR3861 has been fixed. However, since conditionally removing the workaround makes the ABI dependent on LLVM version, I reconsidered that. (The same revision of LDC compiling for the same target should probably produce code that follows the same ABI, right?)
author Frits van Bommel <fvbommel wxs.nl>
date Tue, 24 Mar 2009 02:46:57 +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 bug40;
d7e764e62462 [svn r76] Fixed: TypeInfo for structs.
lindquist
parents:
diff changeset
2
d7e764e62462 [svn r76] Fixed: TypeInfo for structs.
lindquist
parents:
diff changeset
3 char[] func(void* p)
d7e764e62462 [svn r76] Fixed: TypeInfo for structs.
lindquist
parents:
diff changeset
4 {
d7e764e62462 [svn r76] Fixed: TypeInfo for structs.
lindquist
parents:
diff changeset
5 return null;
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 char[] function(void*) fp = &func;
d7e764e62462 [svn r76] Fixed: TypeInfo for structs.
lindquist
parents:
diff changeset
11 assert(fp(null) is null);
d7e764e62462 [svn r76] Fixed: TypeInfo for structs.
lindquist
parents:
diff changeset
12 }