8 character(len=30) :: str(2)
10 critical fkl ! { dg-error "Syntax error in CRITICAL" }
11 end critical fkl ! { dg-error "Expecting END PROGRAM" }
13 sync all (stat=1) ! { dg-error "Syntax error in SYNC ALL" }
14 sync all ( stat = n,stat=k) ! { dg-error "Redundant STAT" }
15 sync memory (errmsg=str)
16 sync memory (errmsg=n) ! { dg-error "must be a scalar CHARACTER variable" }
17 sync images (*, stat=1.0) ! { dg-error "Syntax error in SYNC IMAGES" }
18 sync images (-1) ! { dg-error "must between 1 and num_images" }
21 sync images ( m(1:0) )
22 sync images ( reshape([1],[1,1])) ! { dg-error "must be a scalar or rank-1" }
27 stop 'error' ! { dg-error "Image control statement STOP" }
28 sync all ! { dg-error "Image control statement SYNC" }
29 return 1 ! { dg-error "Image control statement RETURN" }
30 critical ! { dg-error "Nested CRITICAL block" }
32 end critical ! { dg-error "Expecting END SUBROUTINE" }
38 cycle ! { dg-error "leaves CRITICAL construct" }
46 exit outer ! { dg-error "leaves CRITICAL construct" }
54 333 continue ! { dg-error "leaves CRITICAL construct" }
58 goto 333 ! { dg-error "leaves CRITICAL construct" }
69 goto 555 ! { dg-error "leaves CRITICAL construct" }
74 555 end if ! { dg-error "leaves CRITICAL construct" }
77 pure subroutine pureSub()
78 critical ! { dg-error "Image control statement CRITICAL" }
79 end critical ! { dg-error "Expecting END SUBROUTINE statement" }
80 sync all ! { dg-error "Image control statement SYNC" }
81 error stop ! { dg-error "not allowed in PURE procedure" }
82 end subroutine pureSub
86 goto 10 ! { dg-warning "is not in the same block" }
89 5 continue ! { dg-warning "is not in the same block" }
91 goto 20 ! { dg-error "leaves CRITICAL construct" }
92 goto 30 ! { dg-error "leaves CRITICAL construct" }
93 10 END CRITICAL ! { dg-warning "is not in the same block" }
94 goto 5 ! { dg-warning "is not in the same block" }
95 20 continue ! { dg-error "leaves CRITICAL construct" }
97 30 continue ! { dg-error "leaves CRITICAL construct" }