mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 18:03:36 +00:00
tests/warnings/*.m:
Bring the programming style of these modules up to date,
except where the problem being tested for seems to be related
to the old programming style
In the infinite_recursion test case, add code that we *should*
warn about, but currently don't.
tests/warnings/*.m:
Update the expected outputs to account for the changes in line
numbers, and the fact that the compiler computes the contexts
of (if C then T else E) if-then-elses differently from (C -> T; E)
if-then-else (it takes the context of the "then" vs the context
of the ";").
Delete arg_order_rearrangment.exp2. It was long unused, but
deleting it in CVS would not have allowed us to put it back later.
33 lines
810 B
Mathematica
33 lines
810 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ts=4 sw=4 et ft=mercury
|
|
%---------------------------------------------------------------------------%
|
|
|
|
:- module bug412.
|
|
:- interface.
|
|
|
|
% Avoid a warning about the module not exporting anything.
|
|
:- type blah
|
|
---> blah.
|
|
|
|
:- implementation.
|
|
|
|
:- import_module bitmap.
|
|
:- import_module bit_buffer.
|
|
:- import_module bool.
|
|
:- import_module builtin.
|
|
:- import_module char.
|
|
:- import_module diet.
|
|
:- import_module digraph.
|
|
:- import_module enum.
|
|
:- import_module io.
|
|
:- import_module ops.
|
|
:- import_module pprint.
|
|
:- import_module rtree.
|
|
:- import_module store.
|
|
:- import_module stream.
|
|
:- import_module string.
|
|
:- import_module string.builder.
|
|
:- import_module table_statistics.
|
|
:- import_module term.
|
|
:- import_module univ.
|