2019-06-13 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/90870
* gfortran.dg/deferred_character_33.f90: Remove failing test.
* gfortran.dg/deferred_character_33a.f90: Likewise.
From-SVN: r272249
+2019-06-13 Thomas Koenig <tkoenig@gcc.gnu.org>
+
+ PR fortran/90870
+ * gfortran.dg/deferred_character_33.f90: Remove failing test.
+ * gfortran.dg/deferred_character_33a.f90: Likewise.
+
2019-06-12 Thomas Koenig <tkoenig@gcc.gnu.org>
Tomáš Trnka <trnka@scm.com>
+++ /dev/null
-! { dg-do run }
-! { dg-additional-sources deferred_character_33a.f90 }
-! PR fortran/90744 - this used to pass a wrong length
-! to an external function without a prototype.
-! Original test case by Tomáš Trnka.
-module StringModule
- implicit none
-
-contains
- function getstr()
- character(:), allocatable :: getstr
-
- getstr = 'OK'
- end function
-end module
-module TestModule
- use StringModule
- implicit none
-
-contains
- subroutine DoTest()
- if (.false.) then
- call convrs('A',getstr())
- else
- call convrs('B',getstr())
- end if
- end subroutine
-end module
-program external_char_length
- use TestModule
-
- implicit none
-
- call DoTest()
-end program
+++ /dev/null
-! { dg-do compile }
-subroutine convrs(quanty,fromto)
- implicit none
-
- character(*), intent(in) :: quanty,fromto
-
- if (len(fromto) /= 2) stop 1
- if (fromto /= 'OK') stop 2
-end subroutine