pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:1092:
return ({ "A", sort(indices(d->get_a())), "B", sort(indices(d->get_b())), "C", sort(indices(d->get_c())), "D", sort(indices(d->get_d())) }); ]], ({ "A", ({ "a", "b", "c", "d", "e", "f", "get_a" }), "B", ({ "get_a", "get_b" }), "C", ({ "get_a", "get_b", "get_c" }), "D", ({ "get_a", "get_b", "get_c", "get_d" }) })) test_any([[
+
class O {
+
string foo() { return "O"; };
+
class A { string foo() { return "A"; } };
+
class B { string foo() { return "B"; } };
+
class C {
+
inherit A;
+
inherit B;
+
string foo() {
+
return "C" + ::this_function() * ":" +
+
"C" + A::this_function() +
+
"C" + B::this_function() +
+
"C" + O::this_function() + "C"; }
+
};
+
};
+
return O()->C()->foo();
+
]], "CA:BCACBCOC")
+
+
test_any([[
// Test that backtraces with prototypes are rendered correctly by // describe_backtrace() et al. These backtraces have caused both // "Bad offset" and "Identifier reference index out of range". class A { void foo(); }; class B { int gazonk; inherit A; void bar() { foo(); } }; return sizeof(describe_backtrace(catch { B()->bar(); })) > 0; ]], 1) test_any([[ // Test that backtraces with event handlers are rendered correctly.