[WebAssembly] Fix asan issue from https://reviews.llvm.org/D121349
[llvm-project.git] / flang / test / Semantics / altreturn04.f90
blob9285bb730731e7f4c03658d80c842f68443e1df4
1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! Functions cannot use alt return
4 REAL FUNCTION altreturn01(X)
5 !ERROR: RETURN with expression is only allowed in SUBROUTINE subprogram
6 RETURN 1
7 END