Files
mercury/tests/warnings/state_vars_test.m
Ralph Becket afffc4bdac Mostly minor fixes to make test cases pass after the state variable
Estimated hours taken: 6
Branches: main

Mostly minor fixes to make test cases pass after the state variable
transformation was introduced.

compiler/make_hlds.m:
	Reversed previous changes that accidentally undid prior work.
	Added state variable transformation to previously missed aditi cases.

tests/invalid/Mmakefile:
	Removed entry for state_vars_test5.m

tests/invalid/state_vars_test3.m:
tests/invalid/state_vars_test3.err_exp:
	Moved this test to tests/warning as state_vars_test.

tests/invalid/state_vars_test4.m:
tests/invalid/state_vars_test4.err_exp:
tests/invalid/state_vars_test5.m:
tests/invalid/state_vars_test5.err_exp:
	Renamed 4->3 and 5->4.

tests/invalid/aditi_update_errors.err_exp:
	The state variable transformation considers conjuncts in reverse
	order w.r.t. before, changing the expected order of these error
	messages.

tests/invalid/overloading.err_exp:
tests/invalid/record_syntax_errors.err_exp:
	Some variable numbers changed after introduction of the state
	variable transformation.

tests/warnings/Mmakefile:
tests/warnings/state_vars_test.m:
tests/warnings/state_vars_test.exp:
	This was tests/invalid/state_vars_test3.{m,exp}.
2002-08-01 00:41:40 +00:00

30 lines
570 B
Mathematica

%------------------------------------------------------------------------------%
% state_vars_test.m
% Ralph Becket <rafe@cs.mu.oz.au>
% Thu May 30 14:22:14 EST 2002
% vim: ft=mercury ff=unix ts=4 sw=4 et wm=0 tw=0
%
%------------------------------------------------------------------------------%
:- module state_vars_test.
:- interface.
:- import_module io.
:- pred main(io::di, io::uo) is det.
:- implementation.
:- import_module int.
main(!IO).
:- pred p(int::out) is det.
% Warning about reference to "uninitialized" !.X.
%
p(!:X) :-
!.X = 1.