2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / intrinsic_numeric_arg.f
blob445c39ef297960a4c23d1955f267ad9ec23fd475
1 ! this test checks for a non-numeric argument to an
2 ! intrinsic function (of which ABS() is one of many).
3 ! { dg-do compile }
4 LOGICAL Z
5 CHARACTER A
6 REAL R
7 R = ABS(Z) ! { dg-error " must have a numeric type" }
8 R = ABS(A) ! { dg-error " must have a numeric type" }
9 END