move_object.c
v22.2b14/testsuite/single/tests/efuns/move_object.c · 332 B
From the archive beta.tar.gz
Download the archive « Back to the archive contents
void do_tests() {
#ifndef __NO_ENVIRONMENT__
ASSERT(catch(move_object("foo")));
ASSERT(catch(move_object(__FILE__)));
ASSERT(catch(move_object(this_object())));
move_object(master());
ASSERT(environment(this_object()) == master());
destruct(this_object());
ASSERT(catch(move_object(master())));
#endif
}