changeset 368:ca401c18c24e trunk

[svn r389] Include std.outofmemory in testincludes. Fixes run/OutOfMemory_01, 02.
author ChristianK
date Tue, 15 Jul 2008 08:20:21 +0200
parents 519adb3128b1
children 7d91d82000ae
files tests/testincludes/Makefile tests/testincludes/object.di tests/testincludes/std/compat.d tests/testincludes/std/outofmemory.d
diffstat 4 files changed, 23 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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;
--- /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;
--- /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;
+}