pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:1:
START_MARKER
-
test_true([["$Id: testsuite.in,v 1.
802
2008/
04
/
20
17
:
45
:
48
grubba Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
803
2008/
05
/
03
15
:
51
:
50
grubba Exp $"]]);
// This triggered a bug only if run sufficiently early. test_compile_any([[#pike 7.2]]) test_compile_any([[#pike 7.4]]) test_compile_any([[#pike 7.0]]) test_compile_any([[#pike 0.6]]) cond([[all_constants()->_verify_internals]], [[ test_do(_verify_internals())
pike.git/src/testsuite.in:2435:
inherit a; class c { int d (string x, string y) { return x==y; } } } ]]) test_compile([[Stdio.File foo=Stdio.FILE();]])
+
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";
+
}
+
}
+
};
+
class Y {
+
inherit X.X;
+
};
+
return Y()->foo;
+
]], "middle")
+
test_any([[string gurk="bozo"; string b(int x) { return (x?b(x-1)+gurk:""); }; return b(5)]],[["bozo"*5]]) dnl this should really work... dnl test_compile_any([[void foo(int,string,...);]]) dnl This test doesn't run out of stack anymore, freaky dnl test_eval_error([[class X { int create() { create(); } }();]]) test_compile_error([[ int float; ]]) test_compile_error([[ int array; ]]) test_compile_error([[ int function; ]])