pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:937:
int foo; protected void create(int foo) { // Intentional common typo below. this:foo = foo; } }; ]]) //
+
test_compile_warning([[
+
// Warning: Compat: Substituting destroy() for _destruct().
+
class A {
+
protected void destroy() {}
+
}
+
]])
+
test_compile_any([[
+
#pragma no_deprecation_warnings
+
class A {
+
protected void destroy() {}
+
}
+
]])
+
test_compile_any([[
+
class A {
+
protected void _destruct() {}
+
protected void destroy() {}
+
}
+
]])
+
test_compile_any([[
+
class A {
+
protected void destroy() {}
+
protected void _destruct() {}
+
}
+
]])
+
test_any([[ class Foo { constant zero = 0; mapping(string:array(int)) m; string foo() { return sprintf("%O", typeof(m[""][zero])); } }; return Foo()->foo(); ]], "int") test_compile_any([[