/*
TEST_HEADER
id = $Id: //info.ravenbrook.com/project/mps/save-errno-win32/test/argerr/159.c#1 $
summary = negative argument to mps_arena_spare_set
language = c
link = testlib.o
OUTPUT_SPEC
assert = true
assertfile P= arena.c
assertcond = 0.0 <= spare
END_HEADER
*/
#include "testlib.h"
#include "mps.h"
static void test(void *stack_pointer)
{
mps_arena_t arena;
cdie(mps_arena_create_k(&arena, mps_arena_class_vm(), mps_args_none),
"arena");
mps_arena_spare_set(arena, -0.5);
mps_arena_destroy(arena);
}
int main(void)
{
run_test(test);
return 0;
}