Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/zero_length_2.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
rev | line source |
---|---|
111 | 1 ! { dg-do run } |
2 character(len=1) :: s | |
3 character(len=0) :: s0 | |
4 s = " " | |
5 s0 = "" | |
6 call bar ("") | |
7 call bar (s) | |
8 call bar (s0) | |
9 call bar (trim(s)) | |
10 call bar (min(s0,s0)) | |
11 contains | |
12 subroutine bar (s) | |
13 character(len=*), optional :: s | |
131 | 14 if (.not. present (S)) STOP 1 |
111 | 15 end subroutine bar |
16 end |