Files
clang-p2996/flang/test/Semantics/altreturn04.f90
Daniil Dudkin b2f9bde2e0 [flang][NFC] Allow whitespaces before ERROR
This change allows to write whitespaces before the `ERROR` keyword
in semantic tests for consistency with other testing infrastructure.

Also, one test is changed in order to test if the change works
correctly.

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D125884
2022-05-19 17:13:02 +03:00

8 lines
199 B
Fortran

! RUN: %python %S/test_errors.py %s %flang_fc1
! Functions cannot use alt return
REAL FUNCTION altreturn01(X)
! ERROR: RETURN with expression is only allowed in SUBROUTINE subprogram
RETURN 1
END