2021-09-06 16:19:20 +08:00
|
|
|
! RUN: %python %S/test_errors.py %s %flang_fc1
|
2021-01-05 01:35:15 +08:00
|
|
|
! Test alternat return argument passing for internal and external subprograms
|
|
|
|
! Both of the following are OK
|
|
|
|
call extSubprogram (*100)
|
|
|
|
call intSubprogram (*100)
|
|
|
|
call extSubprogram (*101)
|
|
|
|
call intSubprogram (*101)
|
|
|
|
100 PRINT *,'First alternate return'
|
|
|
|
!ERROR: Label '101' is not a branch target
|
|
|
|
!ERROR: Label '101' is not a branch target
|
|
|
|
101 FORMAT("abc")
|
|
|
|
contains
|
|
|
|
subroutine intSubprogram(*)
|
|
|
|
return(1)
|
|
|
|
end subroutine
|
|
|
|
end
|