Plugins: Add label-text.h to CPPLIB_H so it will be installed [PR115288]
[official-gcc.git] / gcc / testsuite / gfortran.dg / default_numeric_type_1.f90
blob7f030e0bf8706e93580726a94ebb1235f3d7bd12
1 ! { dg-do compile }
2 ! { dg-options "-fdump-tree-original" }
3 ! Tests the fix for PR 31222, in which the type of the arguments of abs
4 ! and int below were not detected to be of default numeric type..
6 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
8 subroutine mysub1(a,b,mode,dis)
9 ! integer :: mode
10 ! real :: dis
11 dimension a(abs(mode)),b(int(dis))
12 print *, mod
13 write (*,*) abs(mode), nint(dis)
14 end subroutine
16 program testprog
17 call mysub1((/1.,2./),(/1.,2.,3./),-2, 3.2)
18 end