1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-25 06:50:46 -08:00
emacs/mps/test/conerr/57.c
Nick Barnes 7acfca905d Branch imports for masters.
Copied from Perforce
 Change: 23678
 ServerID: perforce.ravenbrook.com
2001-10-31 14:40:56 +00:00

38 lines
592 B
C

/*
TEST_HEADER
id = $HopeName$
summary = add to ld in wrong space
language = c
link = myfmt.o testlib.o
END_HEADER
*/
#include "testlib.h"
#include "mpscamc.h"
#include "myfmt.h"
static void test(void)
{
mps_space_t space;
mps_space_t space1;
mps_ld_s ld;
cdie(mps_space_create(&space), "create space");
cdie(mps_space_create(&space1), "create space 1");
mps_ld_reset(&ld, space);
comment("Reset ld.");
mps_ld_add(&ld, space1, &space);
comment("Added to ld.");
mps_space_destroy(space);
comment("Destroyed space.");
}
int main(void)
{
easy_tramp(test);
return 0;
}