mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-03 13:33:13 +01:00
[svn r156] added a testcase for the most annoying bug ever
This commit is contained in:
@@ -1199,6 +1199,7 @@ DValue* CallExp::toElem(IRState* p)
|
||||
|
||||
DValue* CastExp::toElem(IRState* p)
|
||||
{
|
||||
assert(type);
|
||||
Logger::print("CastExp::toElem: %s | %s\n", toChars(), type->toChars());
|
||||
LOG_SCOPE;
|
||||
|
||||
@@ -2254,7 +2255,10 @@ DValue* DelegateExp::toElem(IRState* p)
|
||||
else if (func->toParent()->isInterfaceDeclaration())
|
||||
assert(0 && "TODO delegate to interface method");
|
||||
else
|
||||
{
|
||||
DtoForceDeclareDsymbol(func);
|
||||
castfptr = func->irFunc->func;
|
||||
}
|
||||
|
||||
castfptr = DtoBitCast(castfptr, fptr->getType()->getContainedType(0));
|
||||
DtoStore(castfptr, fptr);
|
||||
|
||||
@@ -765,6 +765,7 @@ tangotests/p.d
|
||||
tangotests/q.d
|
||||
tangotests/r.d
|
||||
tangotests/s.d
|
||||
tangotests/stdout1.d
|
||||
tangotests/t.d
|
||||
test
|
||||
test/a.d
|
||||
|
||||
6
tangotests/stdout1.d
Normal file
6
tangotests/stdout1.d
Normal file
@@ -0,0 +1,6 @@
|
||||
import tango.io.Stdout;
|
||||
|
||||
void main()
|
||||
{
|
||||
Stdout("Hello World").newline;
|
||||
}
|
||||
Reference in New Issue
Block a user