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
8 lines
199 B
Fortran
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
|