aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr77978_1.f90
blob: a158f1b78720a717ee206441e7e2b783ffe18c01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
! { dg-do compile }
! { dg-options "-std=f95" }
subroutine a1
  integer, parameter :: i = -666
  stop i ! { dg-error "cannot be negative" }
end subroutine a1

subroutine a2
  stop -666 ! { dg-error "cannot be negative" }
end subroutine a2

subroutine a3
  integer, parameter :: i = 123456
  stop i ! { dg-error "too many digits" }
end subroutine a3

subroutine a4
  stop 123456 ! { dg-error "too many digits" }
end subroutine a4

!subroutine a5
!  stop merge(667,668,.true.) 
!end subroutine a5