[m-rev.] Trivial change to make_hlds.m (state variable error formatting)
Fergus Henderson
fjh at cs.mu.OZ.AU
Mon Jul 22 16:25:56 AEST 2002
On 22-Jul-2002, Ralph Becket <rafe at cs.mu.OZ.AU> wrote:
> --- tests/invalid/state_vars_test3.err_exp 9 Jul 2002 01:31:07 -0000 1.1
> +++ tests/invalid/state_vars_test3.err_exp 19 Jul 2002 07:10:57 -0000
> @@ -1,5 +1 @@
> -state_vars_test3.m: 1: Warning: interface for module `state_vars_test3' does not export anything.
> state_vars_test3.m:022: Warning: reference to unitialized state variable !.X.
> -state_vars_test3_init.o: In function `mercury_init':
> -state_vars_test3_init.o(.text+0x2b6): undefined reference to `<predicate 'main'/2 mode 0>'
> -collect2: ld returned 1 exit status
This test case only has warnings, not errors,
so it should go in tests/warnings, not tests/invalid.
If you put it in tests/invalid, then you'll get spurious errors
because the compiler returns exit status 0 instead of 1.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list