Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gfortran.dg / iso_fortran_env_3.f90
bloba90315958a90e96ec45236fcc18f1e5cd46577c3
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) call abort
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) call abort
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