mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-28 07:44:43 +00:00
Estimated hours taken: 3 Branches: main, release Fix a bug in the handling of unrecognised runtime flags. runtime/mercury_wrapper.c: Add the required sentinel at the end of MR_long_opts. Allow "det-stack-*" and "nondet-stack-*" as synonyms for "detstack-*" and "nondetstack-*" respectively. tests/hard_coded/Mmakefile: tests/hard_coded/runtime_opt.exp: tests/hard_coded/runtime_opt.inp: tests/hard_coded/runtime_opt.m: Test case for both recognised and unrecognised options. The options to attempt are listed one per line in runtime_opt.inp.
10 lines
198 B
Mathematica
10 lines
198 B
Mathematica
:- module runtime_opt.
|
|
:- interface.
|
|
:- import_module io.
|
|
:- pred main(io::di, io::uo) is det.
|
|
:- implementation.
|
|
|
|
main(!IO) :-
|
|
io.write_string("Hello world (with non-standard options).\n", !IO).
|
|
|