# HG changeset patch # User John W. Eaton # Date 1591819654 14400 # Node ID bdd52f5e41702c65e2332d467395a730b8996a3f # Parent 5bca1527b034ab30f4b846ba69f706c97a0e47e9 new test for bug #58519 * test/fcn-handle/bug58519.tst: New file. * test/fcn-handle/module.mk: Update. diff -r 5bca1527b034 -r bdd52f5e4170 test/fcn-handle/bug58519.tst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/fcn-handle/bug58519.tst Wed Jun 10 16:07:34 2020 -0400 @@ -0,0 +1,5 @@ +%!test <58519> +%! fieldname = "a"; +%! structure = struct (fieldname, 42); +%! anonfunc = @ () structure.(fieldname); +%! assert (anonfunc (), 42) diff -r 5bca1527b034 -r bdd52f5e4170 test/fcn-handle/module.mk --- a/test/fcn-handle/module.mk Wed Jun 10 15:59:51 2020 -0400 +++ b/test/fcn-handle/module.mk Wed Jun 10 16:07:34 2020 -0400 @@ -15,6 +15,7 @@ %reldir%/bug51709_a.m \ %reldir%/bug51709_c.m \ %reldir%/bug57941.tst \ + %reldir%/bug58519.tst \ %reldir%/bug57941a.m \ %reldir%/bug57941b.m \ %reldir%/derived-resolution.tst \