v22.2b14/
v22.2b14/Win32/
v22.2b14/compat/
v22.2b14/testsuite/
v22.2b14/testsuite/clone/
v22.2b14/testsuite/command/
v22.2b14/testsuite/data/
v22.2b14/testsuite/etc/
v22.2b14/testsuite/include/
v22.2b14/testsuite/inherit/
v22.2b14/testsuite/inherit/master/
v22.2b14/testsuite/log/
v22.2b14/testsuite/single/
v22.2b14/testsuite/single/tests/compiler/
v22.2b14/testsuite/single/tests/efuns/
v22.2b14/testsuite/single/tests/operators/
v22.2b14/testsuite/u/
v22.2b14/tmp/
int foo() { return 1; }

int same(mixed *x, mixed *y) {
    for (int i = 0; i < sizeof(x); i++) {
	return x[i] == y[i];
    }
}

int bar(int x) {
    return x;
}

void do_tests() {
    ASSERT(file_name()->foo());
    ASSERT(this_object()->foo());
    ASSERT(same((mixed *)({ file_name(), this_object() })->foo(), ({ 1, 1 })));

    ASSERT(catch(call_other(this_object(), 0)));
    ASSERT(call_other(this_object(), "foo"));
    ASSERT(call_other(this_object(), ({ "foo", 1 })));
    ASSERT(catch(call_other("foadf", "foo")));
    
    ASSERT(undefinedp(this_object()->bazz()));
    destruct(this_object());
    ASSERT(undefinedp("/single/master"->valid_bind()));
}