Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/logical_temp_io.f90 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
rev | line source |
---|---|
131 | 1 ! { dg-do run } |
2 ! PR 82869 | |
3 ! A temp variable of type logical was incorrectly transferred | |
4 ! to the I/O library as a logical type of a different kind. | |
5 program pr82869 | |
6 use, intrinsic :: iso_c_binding | |
7 type(c_ptr) :: p = c_null_ptr | |
8 character(len=4) :: s | |
9 write (s, *) c_associated(p), c_associated(c_null_ptr) | |
10 if (s /= ' F F') then | |
11 STOP 1 | |
12 end if | |
13 end program pr82869 |