annotate gcc/testsuite/gfortran.dg/io_tags_8.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
152
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
1 ! { dg-do compile }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
2 ! { dg-options "-std=f2003" }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
3 ! Based on PR fortran/66724, also covers fortran/66725 and fortran/87923.
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
4 !
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
5
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
6 rewind (1, iomsg=1) ! { dg-error "IOMSG tag at ... must be of type CHARACTER" }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
7 rewind (1, iomsg=1e1) ! { dg-error "IOMSG tag at ... must be of type CHARACTER" }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
8 rewind (1, iomsg=1d1) ! { dg-error "IOMSG tag at ... must be of type CHARACTER" }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
9 rewind (1, iomsg=.false.) ! { dg-error "IOMSG tag at ... must be of type CHARACTER" }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
10 rewind (1, iomsg='') ! { dg-error "Non-variable expression" }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
11 rewind (1, iomsg='no') ! { dg-error "Non-variable expression" }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
12 rewind (1, iomsg=null()) ! { dg-error "IOMSG tag at ... must be of type CHARACTER" }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
13 rewind (1, iomsg=(1)) ! { dg-error "IOMSG tag at ... must be of type CHARACTER" }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
14 rewind (1, iomsg=(1., 0.)) ! { dg-error "IOMSG tag at ... must be of type CHARACTER" }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
15 rewind (1, iomsg=[1]) ! { dg-error "IOMSG tag at ... must be of type CHARACTER" }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
16 rewind (1, iomsg=['']) ! { dg-error "IOMSG tag at ... must be scalar" }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
17
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
18 end