[flang] Re-enable semantics/altreturn{02,03} tests

Authored by Luke Ireland <luke.ireland@arm.com> on Feb 21 2020, 4:28 AM.


[flang] Re-enable semantics/altreturn{02,03} tests

These tests were disabled due to https://github.com/flang-compiler/f18/issues/407.
Previously these tests caused F18 to crash as the feature was not fully

The altreturn feature is now implemented, so these tests can be
re-enabled. altreturn03 tested some negative cases which F18 correctly
diagnoses. Modified that test to expect these new error messages. Also
make the later cases in the test reachable.

These tests can now be ported by the script to lit-style tests.

Change-Id: Ib336c10d55068d9a26fc2deb43ad052e74e73456

Original-commit: flang-compiler/f18@4de19d7ba2df892ce4361461841c3997de439532
Reviewed-on: https://github.com/flang-compiler/f18/pull/1027
Tree-same-pre-rewrite: false

Event Timeline

Luke Ireland <luke.ireland@arm.com> committed rGa9d9261cf36d: [flang] Re-enable semantics/altreturn{02,03} tests (authored by Luke Ireland <luke.ireland@arm.com>).Mar 13 2020, 4:58 AM