3 ! Test of fix for PR28237 and the last bit of PR23420. See
4 ! below for the description of the problem.
7 character(12) :: for = '(i5)', left = '(i', right = ')'
10 = (/1h(, 1hi, 1h5, 1h)/)! { dg-warning "HOLLERITH|Hollerith" }
14 ! All these are "legal" things to do; note however the warnings
15 ! for extensions or obsolete features!
20 print mynml ! { dg-warning "is an extension" }
22 print trim(left)//char(iachar('0') + i)//trim(right), i
24 assign 100 to i ! { dg-warning "ASSIGN statement" }
25 print i, fact() ! { dg-warning "ASSIGNED variable" }
26 print h, fact () ! { dg-warning "Non-character in FORMAT" }
28 ! These are not and caused a segfault in trans-io:560
31 print fact() ! { dg-error "not an ASSIGNED variable" }
33 print precision(1.2_8) ! { dg-error "type default CHARACTER" }
34 ! PR23420 points 4 and 5
35 print j + j ! { dg-error "not an ASSIGNED variable" }
36 ! An extension of the above, encountered in writing the fix
37 write (*, fact())! { dg-error "not an ASSIGNED variable" }