This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: test programs for SELECT CASE


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]