3 if test "$#" -ne 2; then
4 echo "Usage $0 int_kinds compile"
8 # Possible kinds must be listed in ascending order
9 possible_integer_kinds
="$1"
15 for k
in $possible_integer_kinds; do
16 echo " integer (kind=$k) :: x" > tmp$$.f90
17 echo " x = 1_$k" >> tmp$$.f90
18 echo " end" >> tmp$$.f90
19 if $compile -S tmp$$.f90
> /dev
/null
2>&1; then
26 echo " integer, parameter :: c = $c"
27 echo " type (int_info), parameter :: int_infos(c) = (/ &"
31 # echo -n is not portable
32 str
=" int_info ($k, range(0_$k))"
34 if [ $i -lt $c ]; then