PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / iso_fortran_env_3.f90
blob65c1db2e937848ed9b31760973a0d5357d73b4b1
1 ! { dg-do run }
2 subroutine foo1 (x,y)
3 use iso_fortran_env
4 integer, intent(out) :: x, y
6 x = numeric_storage_size
7 y = character_storage_size
8 end
10 subroutine foo2 (x,y)
11 use iso_fortran_env, foo => numeric_storage_size
12 integer, intent(in) :: x, y
14 if (foo /= x .or. character_storage_size /= y) STOP 1
15 end
17 subroutine foo3 (x,y)
18 use iso_fortran_env, only : numeric_storage_size, character_storage_size
19 integer, intent(in) :: x, y
21 if (numeric_storage_size /= x .or. character_storage_size /= y) STOP 2
22 end
24 program test
25 integer :: x, y
26 call foo1(x,y)
27 call foo2(x,y)
28 call foo3(x,y)
29 end