test programs for SELECT CASE
Tobias Schlüter
tobias.schlueter@physik.uni-muenchen.de
Sat Jan 8 17:37:00 GMT 2005
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.)
- Tobi
More information about the Fortran
mailing list