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.
785
2007/
06
/
18
00
:
42
:
52
mast
Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
786
2007/
09
/
14
19
:
01
:
53
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:3485:
void `->x1=(int z) { x1::x = z; } int `->x2() { return x2::x; } void `->x2=(int z) { x2::x = z; } }; Y y = Y(); y->x1 = 1; y->x2 = 2; return (y->x1 + y->x2) * y->x; ]], 6)
+
test_any([[
+
// Triggered fatal error "Getter/setter variable outside program!".
+
class X {
+
static int xx;
+
int `->x() { return xx; }
+
void `->x=(int xxx) { xx = xxx; }
+
static void create(int xxx) {
+
x = xxx;
+
}
+
};
+
class Y {
+
inherit X;
+
static void create(int yyy) {
+
X:x = yyy + 2;
+
}
+
};
+
return Y(5)->x;
+
]], 7)
+
test_compile_error([[ class X { int x; int `->x() { return 0; } }; ]]) test_compile_error([[ class X { int `->x() { return 0; }