1 ! RUN: %python %S/test_errors.py %s %flang_fc1
5 !ERROR: Cannot reference function 'str' as data
6 print *, str(1:9), str(7)
10 !ERROR: Cannot reference function 'str1' as data
11 print *, str1(1:9), str1(7)
12 print *, str2(1:9) ! substring is ok
13 !ERROR: 'str2' is not a callable procedure
15 !ERROR: Cannot reference function 'str3' as data
16 print *, str3(7), str3(1:9)
22 !ERROR: Cannot reference function 'func' as data
23 print *, func(7), func(1:9)
28 !ERROR: Cannot reference function 'func' as data
29 print *, func(7), func(1:6)
35 !ERROR: Cannot reference function 'local' as data
36 print *, local(1:6), local(7)
37 !ERROR: Cannot reference function 'local1' as data
38 print *, local1(7), local1(1:6)