summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.fortran-torture/execute/plusconst_1.f90
blob: 7fc3eebb15bf90eb8947e77ed5f5e1e71dde5752 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! PR14005
! The GMP conversion routines object to a leading "+"
program plusconst_1
  implicit none
  real p
  integer i
  data p /+3.1415/
  data i /+42/
  real :: q = +1.234
  integer :: j = +100

  if ((p .ne. 3.1415) .or. (i .ne. 42) .or. (q .ne. 1.234) .or. (j .ne. 100)) &
    call abort
end program