[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gfortran.dg / erfc_scaled_1.f90
blobeeb54c829dcaff995936c3853d9e406964df8397
1 ! { dg-do run }
3 ! { dg-options "" }
4 ! Do not run with -pedantic checks enabled as "check"
5 ! contains internal procedures which is a vendor extension
7 program test
8 implicit none
10 interface check
11 procedure check_r4
12 procedure check_r8
13 end interface check
15 real(kind=4) :: x4
16 real(kind=8) :: x8
18 x8 = 1.9_8 ; x4 = 1.9_4
20 call check(erfc_scaled(x8), erfc_scaled(1.9_8))
21 call check(erfc_scaled(x4), erfc_scaled(1.9_4))
23 contains
24 subroutine check_r4 (a, b)
25 real(kind=4), intent(in) :: a, b
26 if (abs(a - b) > 1.e-5 * abs(b)) call abort
27 end subroutine
28 subroutine check_r8 (a, b)
29 real(kind=8), intent(in) :: a, b
30 if (abs(a - b) > 1.e-7 * abs(b)) call abort
31 end subroutine
32 end program test