pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:3137:
string c(array(A) a) { return "C" + (a->a() * "C") + "C"; } variant string c(array(B) b) { return "CB" + `+(0, @b->a()) + "BC"; } }; A a = A(); B b = B(); C c = C(); return c->c(({a,a})) + c->c(({b,b})); ]]) test_any([[
+
// Test the __weak__ modifier.
+
class A {
+
class Q{};
+
__weak__ Q q_w = Q();
+
__weak__ mixed m_w = Q();
+
Q q = Q();
+
mixed m = Q();
+
};
+
A a = A();
+
gc();
+
return !a->q_w && !a->m_w && a->q && a->m && 1;
+
]], 1)
+
+
test_any([[
// Test symbol lookup for inherit in multi-pass. // LysLysKOM 16472935 // An old pike will attempt to lookup X in the innermost X // during the second pass and thus fail with a compilation error. class X { constant foo = "outer"; class X { constant foo = "middle"; class X { constant foo = "inner";