Need help with testsuite program

Andrew Pinski pinskia@physics.uc.edu
Sat Feb 19 21:20:00 GMT 2005


On Feb 19, 2005, at 4:17 PM, Steve Kargl wrote:

> I've added the following program to my local copy of the testsuite
> to test a fix for PR 19754.  The original test is due to Thomas
> Paul Richard and slightly modified by me.
>
> ! { dg-do compile }
> ! Test of Steve Kargl's fix to PR19754
> !
> program PR19754_1
>    real x(3,3),y(2,2)
>    x = 1.
>    y = 2.
>    x = x + y  ! { dg-error "Inconsistent shapes for operands at (1) 
> and (2)" }
> end program PR19754_1

IIRC parentheses are special which is why this is not matching, I would 
just remove
the words after "operands".  This is will match and will make sure that 
you get
the error still.

Thanks,
Andrew Pinski



More information about the Fortran mailing list