Files
mercury/tests/hard_coded/purity.exp
Peter Schachte 2f3ea6c2a6 Fix inappropriate warning message for purity markers.
Estimated hours taken:  3

Ripped out code to warn if impurity markers were put before non-atomic
goals.  Such errors are now handled in prog_io_goal.m, and a suitable
error message is printed by typecheck.m.  So the code in purity.m was
vestigial.  It was triggered by implied modes of semipure or impure
goals, because they are turned into conjunctions, which then appear to
have been marked {im,semi}pure.

compiler/purity.m:
	Ripped out no-longer-needed error checking code.
tests/hard_coded/purity.exp:
tests/hard_coded/purity.m:
	Add a regression test.
tests/invalid/purity_nonsense.err_exp:
tests/invalid/purity_nonsense.m:
	Add a `impure call(P)' test (should give a warning/error).
1998-01-06 06:31:42 +00:00

11 lines
53 B
Plaintext

0
1
3
4
test4 succeeds
4
5
7
8
test4_inline succeeds