summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr17143.f90
blob: 4423eab7354e0e5b02972a3aaa28c0dea80e2f17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
! { dg-do run }
! { dg-options "-std=legacy" }
!
! pr17143
! does not print 2*63 correctly
       character*25 l
       integer(kind=8) i
       data i /1/
       do j = 1,63
          i = i * 2
       end do
       write(l,*)i
       if (l.ne.' -9223372036854775808') then
!                ^
!         the space is required before a number
          call abort
       endif 
       end