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

23 lines
472 B
C

#ifndef __SENSIBLE_MODIFIERS__
static
#else
protected
#endif
int stat() {
}
private int priv() {
}
void do_tests() {
ASSERT(function_exists("stat", this_object(), 1));
ASSERT(function_exists("priv", this_object(), 1));
ASSERT(!function_exists("stat", this_object()));
ASSERT(!function_exists("priv", this_object()));
ASSERT(!function_exists("bar", this_object()));
ASSERT(function_exists("do_tests", this_object()) + ".c" == __FILE__);
}