We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b36caa commit af22bdcCopy full SHA for af22bdc
t/run/todo.t
@@ -337,6 +337,20 @@ TODO: {
337
338
}
339
340
+TODO: {
341
+ local $::TODO = 'GH 19378';
342
+ fresh_perl_like(
343
+ <<~'HERE',
344
+ sub () { !0 };
345
+ for (!0) { $_++ };
346
+ HERE
347
+ qr/Modification of a read-only value/,
348
+ {},
349
+ "'sub () { !0 }' does not prevent 'Modification of a read-only value' error; GH 19378"
350
+ );
351
+ isnt($?, 0, 'Compilation fails; GH 19378');
352
+}
353
+
354
TODO: {
355
todo_skip 1 if is_miniperl();
356
local $::TODO = 'GH 22168';
0 commit comments