Commit 9d953276 by Tobias Schlüter Committed by Tobias Schlüter

data_char_1.f90: Fix typo, add dg-do directive.

* gfortran.dg/data_char_1.f90: Fix typo, add dg-do directive.
* gfortran.dg/direct_io_1.f90: Add dg-do directive.
* gfortran.dg/entry_1.f90: Fix typo, add dg-do directive.
* gfortran.dg/getenv_1.f90: Add dg-do directive.
* gfortran.dg/pr16597.f90, gfortran.dg/pr17143.f90,
gfortran.dg/pr17164.f90: Add missing dg-do directives.

From-SVN: r93994
parent 548414c6
2005-01-20 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
* gfortran.dg/data_char_1.f90: Fix typo, add dg-do directive.
* gfortran.dg/direct_io_1.f90: Add dg-do directive.
* gfortran.dg/entry_1.f90: Fix typo, add dg-do directive.
* gfortran.dg/getenv_1.f90: Add dg-do directive.
* gfortran.dg/pr16597.f90, gfortran.dg/pr17143.f90,
gfortran.dg/pr17164.f90: Add missing dg-do directives.
2005-01-20 Kazu Hirata <kazu@cs.umass.edu> 2005-01-20 Kazu Hirata <kazu@cs.umass.edu>
PR tree-optimization/15349 PR tree-optimization/15349
......
! { dg-do run }
! Test character variables in data statements ! Test character variables in data statements
! Also substrings of cahracter variables. ! Also substrings of cahracter variables.
! PR14976 PR16228 ! PR14976 PR16228
...@@ -8,5 +9,5 @@ program data_char_1 ...@@ -8,5 +9,5 @@ program data_char_1
data b(:)(1:4), b(1)(5:5), b(2)(5:5) /'abcdefg', 'hi', 'j', 'k'/ data b(:)(1:4), b(1)(5:5), b(2)(5:5) /'abcdefg', 'hi', 'j', 'k'/
if ((a(1) .ne. 'Hello') .or. (a(2) .ne. 'orld ')) call abort if ((a(1) .ne. 'Hello') .or. (a(2) .ne. 'orld ')) call abort
if ((b(1) .ne. 'adcdl') .or. (b(2) .ne. 'hi l')) call abort if ((b(1) .ne. 'abcdj') .or. (b(2) .ne. 'hi k')) call abort
end program end program
! { dg-do run }
! PR 16908 ! PR 16908
! Segfaulted on second set of writes. We weren't handling partial records ! Segfaulted on second set of writes. We weren't handling partial records
! properly when calculating the file position. ! properly when calculating the file position.
......
! { dg-do run }
! Test alternate entry points in a module procedure ! Test alternate entry points in a module procedure
! Also check that references to sibling entry points are resolved correctly. ! Also check that references to sibling entry points are resolved correctly.
module m module m
...@@ -11,7 +12,7 @@ end subroutine ...@@ -11,7 +12,7 @@ end subroutine
subroutine test1 subroutine test1
implicit none implicit none
call indidecta (foo) call indirecta (foo)
call indirectb (bar) call indirectb (bar)
end subroutine end subroutine
......
! { dg do-run } ! { dg-do run }
! Test the getenv and get_environment_variable intrinsics. ! Test the getenv and get_environment_variable intrinsics.
! Ignore the return value because it's not supported/meaningful on all targets ! Ignore the return value because it's not supported/meaningful on all targets
program getenv_1 program getenv_1
......
! { dg-do run }
! pr 16597 ! pr 16597
! libgfortran ! libgfortran
! reading a direct access record after it was written did ! reading a direct access record after it was written did
......
! { dg-do run }
! pr17143 ! pr17143
! does not print 2*63 correctly ! does not print 2*63 correctly
character*25 l character*25 l
......
! { dg-do run }
! pr17164 ! pr17164
! index aborts when substring is longer than string ! index aborts when substring is longer than string
implicit none implicit none
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment