mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-23 13:23:47 +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.
28 lines
1.8 KiB
Plaintext
28 lines
1.8 KiB
Plaintext
bug311.m:167: Warning: this disjunction further instantiates the already
|
|
bug311.m:167: partially instantiated variable G.
|
|
bug311.m:167: Since the memory cell of this variable is allocated *before*
|
|
bug311.m:167: the disjunction, the different disjuncts will return their
|
|
bug311.m:167: potentially different solutions for this variable in the same
|
|
bug311.m:167: memory cell, which will cause any all-solutions predicate to
|
|
bug311.m:167: think that the different solutions (since they are at the same
|
|
bug311.m:167: address) are in fact all the same when invoked on the
|
|
bug311.m:167: procedure.
|
|
bug311.m:185: Warning: this disjunction further instantiates the already
|
|
bug311.m:185: partially instantiated variables G1, G2 and G3.
|
|
bug311.m:185: Since the memory cells of these variables are allocated
|
|
bug311.m:185: *before* the disjunction, the different disjuncts will return
|
|
bug311.m:185: their potentially different solutions for each of these
|
|
bug311.m:185: variables in the same memory cell, which will cause any
|
|
bug311.m:185: all-solutions predicate to think that the different solutions
|
|
bug311.m:185: (since they are at the same address) are in fact all the same
|
|
bug311.m:185: when invoked on the procedure.
|
|
bug311.m:200: Warning: this disjunction further instantiates the already
|
|
bug311.m:200: partially instantiated variable GG.
|
|
bug311.m:200: Since the memory cell of this variable is allocated *before*
|
|
bug311.m:200: the disjunction, the different disjuncts will return their
|
|
bug311.m:200: potentially different solutions for this variable in the same
|
|
bug311.m:200: memory cell, which will cause any all-solutions predicate to
|
|
bug311.m:200: think that the different solutions (since they are at the same
|
|
bug311.m:200: address) are in fact all the same when invoked on the lambda
|
|
bug311.m:200: expression in bug311.m at line 195.
|