pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2014-09-30
2014-09-30 16:20:55 by Martin Nilsson <nilsson@opera.com>
8e06a314e54f9a8534ad54281290bfc1966159be (
15
lines) (+
8
/-
7
)
[
Show
|
Annotate
]
Branch:
8.0
this_program:: -> this::
1007:
}; class D { inherit C;
-
this_program get_d() { return this
_program
::this; }
+
this_program get_d() { return this::this; }
}; object(D) d = D(); return ({ "A", sort(indices(d->get_a())),
11877:
class B { string _sprintf() {return "B";} mixed f() {
-
return sprintf ("%O%O%O%O%O",
-
global::this, A::this, B::this, this_program::this, this);
+
return sprintf ("%O%O%O%O%O
%O
",
+
global::this, A::this, B::this, this_program::this, this
::this, this
);
} } } string a() {return A()->B()->f();}
-
]], "
gABBB
")
+
]], "
gABBBB
")
test_program_eq([[ string _sprintf() {return "g";}
11923:
class B { string _sprintf() {return "B";} mixed f() {
-
return sprintf ("%O%O%O%O%O",
-
global::this, A::this, B::this, this_program::this, this);
+
return sprintf ("%O%O%O%O%O
%O
",
+
global::this, A::this, B::this, this_program::this, this
::this, this
);
} } constant this = 7; } string a() {return A()->B()->f();}
-
]], "
g7BB7
")
+
]], "
g7BBB7
")
test_compile_error([[ this = 17;