[svn r156] added a testcase for the most annoying bug ever

This commit is contained in:
Tomas Lindquist Olsen
2008-03-24 20:05:44 +01:00
parent ecd91a48f2
commit 24392c4903
3 changed files with 11 additions and 0 deletions

View File

@@ -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);

View File

@@ -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
View File

@@ -0,0 +1,6 @@
import tango.io.Stdout;
void main()
{
Stdout("Hello World").newline;
}