[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Semantics / label06.f90
blobd3674d6dfc0a39f650ba7f451e2d25ae92252684
1 ! RUN: not %flang_fc1 -fdebug-unparse-with-symbols %s 2>&1 | FileCheck %s
2 ! CHECK: warning: Label '10' is in a construct that should not be used as a branch target here
3 ! CHECK: Label '20' was not found
4 ! CHECK: Label '30' is not a branch target
5 ! CHECK: Control flow use of '30'
6 ! CHECK: warning: Label '40' is in a construct that should not be used as a branch target here
7 ! CHECK: warning: Label '50' is in a construct that should not be used as a branch target here
9 subroutine sub00(n)
10 GOTO (10,20,30) n
11 if (n .eq. 1) then
12 10 print *, "xyz"
13 end if
14 30 FORMAT (1x,i6)
15 end subroutine sub00
17 subroutine sub01(n)
18 real n
19 GOTO (40,50,60) n
20 if (n .eq. 1) then
21 40 print *, "xyz"
22 50 end if
23 60 continue
24 end subroutine sub01