mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-17 17:29:02 +02:00
[svn r389] Include std.outofmemory in testincludes.
Fixes run/OutOfMemory_01, 02.
This commit is contained in:
11
tests/testincludes/std/outofmemory.d
Normal file
11
tests/testincludes/std/outofmemory.d
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user