mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 01:13:30 +00:00
Estimated hours taken: 3 extras/dynamic_linking/dl.m: Fix a bug with the building of closures for the MLDS back-end: the wrapper procedure in the closure gets passed the closure as an extra argument, so we can't just use the address return from dlsym() in the closure. Instead, we need to put the address of a wrapper procedure in the closure, and have the wrapper procedure call the real procedure, passing it all the arguments passed to the wrapper *except* for the closure argument. extras/dynamic_linking/Mmakefile: extras/dynamic_linking/dl_test.m: extras/dynamic_linking/dl_test2.m: extras/dynamic_linking/dl_test.exp: extras/dynamic_linking/dl_test2.exp: Move the test case that the MLDS grades don't handle into a separate file. Add a new test for passing integer arguments.
2 lines
27 B
Plaintext
2 lines
27 B
Plaintext
1.0 + 2.0 + 3.0 = 6.000000
|