[m-rev.] Trivial change to make_hlds.m (state variable error formatting)
Ralph Becket
rafe at cs.mu.OZ.AU
Mon Jul 22 16:30:04 AEST 2002
Fergus Henderson, Monday, 22 July 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.
I put it in tests/warnings because that's where the other state-vars
tests are that check errors and warnings. I added --halt-at-warn for
this file in the Mmakefile.
I'll move it to tests/warnings instead.
- Ralph
--------------------------------------------------------------------------
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