# HG changeset patch # User ChristianK # Date 1216102821 -7200 # Node ID ca401c18c24ebd1629b3a42e3d2ec46c2d1f8a49 # Parent 519adb3128b1bb908c416cc6afc169bee9366722 [svn r389] Include std.outofmemory in testincludes. Fixes run/OutOfMemory_01, 02. diff -r 519adb3128b1 -r ca401c18c24e tests/testincludes/Makefile --- a/tests/testincludes/Makefile Tue Jul 15 08:17:43 2008 +0200 +++ b/tests/testincludes/Makefile Tue Jul 15 08:20:21 2008 +0200 @@ -57,6 +57,7 @@ OBJ_CORE= \ std/gc.bc \ + std/outofmemory.bc \ # std/asserterror.bc \ # std/math.bc \ # std/stdarg.bc diff -r 519adb3128b1 -r ca401c18c24e tests/testincludes/object.di --- a/tests/testincludes/object.di Tue Jul 15 08:17:43 2008 +0200 +++ b/tests/testincludes/object.di Tue Jul 15 08:20:21 2008 +0200 @@ -5,10 +5,7 @@ module object; -alias char[] string; -alias wchar[] wstring; -alias dchar[] dstring; -alias Exception Error; +import std.compat; alias typeof(int.sizeof) size_t; alias typeof(cast(void*)0 - cast(void*)0) ptrdiff_t; diff -r 519adb3128b1 -r ca401c18c24e tests/testincludes/std/compat.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/testincludes/std/compat.d Tue Jul 15 08:20:21 2008 +0200 @@ -0,0 +1,10 @@ +module std.compat; + +extern (C) int printf(char *, ...); + +alias char[] string; +alias wchar[] wstring; +alias dchar[] dstring; + +alias Exception Error; +alias bool bit; diff -r 519adb3128b1 -r ca401c18c24e tests/testincludes/std/outofmemory.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/testincludes/std/outofmemory.d Tue Jul 15 08:20:21 2008 +0200 @@ -0,0 +1,11 @@ +module std.outofmemory; +import std.compat; + +public import tango.core.Exception; + +extern (C) void _d_OutOfMemory() +{ + throw cast(OutOfMemoryException) + cast(void *) + OutOfMemoryException.classinfo.init; +}