Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/runtime_warning_1.f90 @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 ! Test runtime warnings using non-standard $ editing - PR20006. |
2 ! | |
3 ! Contributor Francois-Xavier Coudert <coudert@clipper.ens.fr> | |
4 ! | |
5 ! { dg-options "-pedantic" } | |
6 ! { dg-do run } | |
7 ! | |
8 character(5) c | |
9 open (42,status='scratch') | |
10 write (42,'(A,$)') 'abc' ! { dg-warning ".*descriptor" } | |
11 write (42,'(A)') 'de' | |
12 rewind (42) | |
13 read (42,'(A)') c | |
14 close (42) | |
131 | 15 if (c /= 'abcde') STOP 1 |
111 | 16 end |
17 |