mud/fluffos-2.23-ds03/testsuite/single/tests/efuns/save_object.c
2020-09-06 05:43:07 -07:00

15 lines
303 B
C

int x = 0;
#ifndef __SENSIBLE_MODIFIERS__
static int z = 5;
#else
nosave int z = 5;
#endif
int y = 1;
void do_tests() {
save_object("/sf");
ASSERT(read_file("/sf.o") == "#" + __FILE__ + "\ny 1\n");
save_object("/sf", 1);
ASSERT(read_file("/sf.o") == "#" + __FILE__ + "\nx 0\ny 1\n");
}