pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:1010:
protected void destroy() {} } ]]) test_compile_any([[ class A { protected void destroy() {} protected void _destruct() {} } ]])
-
test_compile_any([[
-
class C {
-
local constant A = 1;
-
constant B = A + 1;
-
}
-
]])
-
-
test_compile_error([[
-
class C {
-
constant A = 1;
-
// Error: Constant definition is not constant.
-
constant B = A + 1;
-
}
-
]])
-
-
test_compile_warning([[
-
#pike 8.0
-
class C {
-
constant A = 1;
-
// Warning: Constant expression has external dependencies.
-
constant B = A + 1;
-
}
-
]])
-
+
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([[