pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2016-10-25
2016-10-25 14:02:16 by Henrik Grubbström (Grubba) <grubba@grubba.org>
0db1d1d59f66cb2d8c78321fda35a8dd96b1f3b6 (
8
lines) (+
8
/-
0
)
[
Show
|
Annotate
]
Branch:
8.1
Testsuite
[mapping]
: Test mapping type field masks.
4760:
test_any([[mapping m=([0:2]); m[0]--; return m[0]--;]], 1); test_any([[mapping m=([0:2]); --m[0]; return --m[0];]], 0);
+
test_any_equal([[
+
// Test that the type fields are cleared when the mapping is cleared.
+
mapping m = (["a":"a"]);
+
m_delete(m, "a");
+
return m;
+
]], ([]))
+
test_compile_error(int foo() { LJjjjjJJJ ; }) test_true(class c { constant i=1; }()->i) test_true(class c { constant i=0; mixed `->(string s) { if(s=="i") return 1; }}()->i)