Files
mercury/tests/warnings/purity_warnings.exp
Zoltan Somogyi 83dc913329 Update the style of the warnings test cases.
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.
2019-04-20 09:37:37 +10:00

26 lines
1.5 KiB
Plaintext

purity_warnings.m:030: In call to predicate `io.write_string'/3:
purity_warnings.m:030: warning: unnecessary `semipure' indicator.
purity_warnings.m:030: No purity indicator is necessary.
purity_warnings.m:031: In call to predicate `io.print'/3:
purity_warnings.m:031: warning: unnecessary `impure' indicator.
purity_warnings.m:031: No purity indicator is necessary.
purity_warnings.m:033: In predicate `impure_pred1'/2:
purity_warnings.m:033: warning: declared impure but actually pure.
purity_warnings.m:037: In predicate `impure_pred2'/2:
purity_warnings.m:037: warning: declared impure but actually semipure.
purity_warnings.m:045: In predicate `semipure_pred'/2:
purity_warnings.m:045: warning: declared semipure but actually pure.
purity_warnings.m:047: In call to predicate `io.write_string'/3:
purity_warnings.m:047: warning: unnecessary `semipure' indicator.
purity_warnings.m:047: No purity indicator is necessary.
purity_warnings.m:077: In predicate `impure_method1a_impl'/2:
purity_warnings.m:077: warning: declared impure but actually pure.
purity_warnings.m:079: In call to predicate `io.print'/3:
purity_warnings.m:079: warning: unnecessary `impure' indicator.
purity_warnings.m:079: No purity indicator is necessary.
purity_warnings.m:089: In predicate `semipure_method_a_impl'/2:
purity_warnings.m:089: warning: declared semipure but actually pure.
purity_warnings.m:091: In call to predicate `io.print'/3:
purity_warnings.m:091: warning: unnecessary `semipure' indicator.
purity_warnings.m:091: No purity indicator is necessary.