[svn r389] Include std.outofmemory in testincludes.

Fixes run/OutOfMemory_01, 02.
This commit is contained in:
Christian Kamm
2008-07-15 08:20:21 +02:00
parent e846017e80
commit 5b9edddb9d
4 changed files with 23 additions and 4 deletions

View File

@@ -57,6 +57,7 @@ lib : tangobos.lib
OBJ_CORE= \
std/gc.bc \
std/outofmemory.bc \
# std/asserterror.bc \
# std/math.bc \
# std/stdarg.bc

View File

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

View File

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

View File

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