test programs for SELECT CASE
Steve Kargl
sgk@troutmask.apl.washington.edu
Sat Jan 8 17:49:00 GMT 2005
On Sat, Jan 08, 2005 at 06:36:52PM +0100, Tobias Schl?ter wrote:
> Steve Kargl wrote:
> > select_2.f90, select_3.f90, and select_4.f90 should all
> > compile and execute with gfortran. select_5.f90 and
> > select_6.f90 should fail during compilation with errors
> > due to overlapping CASE ranges. I don't know how to
> > tell the testsuite that these two should fail. If someone
> > can annotate select_5.f90 and select_6.f90, I would
> > appreciate it.
>
> I've added no. 2, 3 and 4 to the testsuite. Our test harness doesn't seem
> capable of accomodating multi-locus error messages, so no. 5 and 6 will
> require some TCL work unfortunately.
>
> (annotating testcases to fail is easy, outside of above problems: say "{dg-do
> compile }" and then, on the same line that should give an error, say {
> dg-error "some part of error message that should be matched" "human-readable
> name for the error" } where the two strings are not required.)
>
Thanks.
Hopefully, someone can tell us how to do multi-locus error messages
for 5 and 6, because I suspect that we may need this capability for
other tests in the future.
--
Steve
More information about the Fortran
mailing list