This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: test programs for SELECT CASE
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- To: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- Cc: fortran at gcc dot gnu dot org
- Date: Sat, 08 Jan 2005 18:36:52 +0100
- Subject: Re: test programs for SELECT CASE
- References: <20041230183653.GA5081@troutmask.apl.washington.edu>
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