summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/intrinsic_numeric_arg.f
blob: 3257d456f75f02488afebff380d5f6e0882db1a5 (plain)
1
2
3
4
5
6
7
8
9
! this test checks for a non-numeric argument to an
! intrinsic function (of which ABS() is one of many).
!      { dg-do compile }
       LOGICAL Z
       CHARACTER A
       REAL R
       R = ABS(Z) !  { dg-error " must be a numeric type" }
       R = ABS(A) !  { dg-error " must be a numeric type" }
       END