Skip to content
Snippets Groups Projects
Commit b0dfbbcb authored by Martin Nilsson's avatar Martin Nilsson Committed by Henrik (Grubba) Grubbström
Browse files

Testsuite: Added test for [bug 6062].

Thanks to Martin Nilsson <nilsson@opera.com> for the report and testcase.
parent 2652e242
No related branches found
No related tags found
No related merge requests found
...@@ -440,6 +440,15 @@ test_eval_error([[ ...@@ -440,6 +440,15 @@ test_eval_error([[
X()->s = (mixed) X(); X()->s = (mixed) X();
]]) ]])
test_any([[
// Bug 6062
class C { mapping options = ([ 1:1 ]); };
C c = C();
c->options[3] = 3;
c = C();
return sizeof(c->options) == 1;
]], 1)
dnl bug in for loop optimization in combination with += dnl bug in for loop optimization in combination with +=
test_any([[ test_any([[
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment