annotate tests/mini/delegate.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 8116660902c2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
514
8116660902c2 Add test case for broken delegates. Also still needs fixing!
Christian Kamm <kamm incasoftware de>
parents:
diff changeset
1 class C { void foo() {} }
8116660902c2 Add test case for broken delegates. Also still needs fixing!
Christian Kamm <kamm incasoftware de>
parents:
diff changeset
2
8116660902c2 Add test case for broken delegates. Also still needs fixing!
Christian Kamm <kamm incasoftware de>
parents:
diff changeset
3 void main()
8116660902c2 Add test case for broken delegates. Also still needs fixing!
Christian Kamm <kamm incasoftware de>
parents:
diff changeset
4 {
8116660902c2 Add test case for broken delegates. Also still needs fixing!
Christian Kamm <kamm incasoftware de>
parents:
diff changeset
5 C c = new C;
8116660902c2 Add test case for broken delegates. Also still needs fixing!
Christian Kamm <kamm incasoftware de>
parents:
diff changeset
6 void delegate() dlg = &c.foo;
8116660902c2 Add test case for broken delegates. Also still needs fixing!
Christian Kamm <kamm incasoftware de>
parents:
diff changeset
7
8116660902c2 Add test case for broken delegates. Also still needs fixing!
Christian Kamm <kamm incasoftware de>
parents:
diff changeset
8 assert(dlg);
8116660902c2 Add test case for broken delegates. Also still needs fixing!
Christian Kamm <kamm incasoftware de>
parents:
diff changeset
9 }