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: substring boundardy check (PR27588): writing a dg tests case


Hi,

FX Coudert schrieb:
>> b) I would like to add a test case to the test suit, but how does one
>> test for run-time errors?
> 
> Use dg-shouldfail and dg-output to check a) that the testcase fails to
> execute and b) it issues a runtime message. See
> gfortran.dg/bounds_check_fail_1.f90 for details.

I could not find bounds_check_fail_1.f90; I only have:

gcc/testsuite> ls -1 gfortran.dg/bound*
gfortran.dg/bound_1.f90
gfortran.dg/bounds_check_1.f90
gfortran.dg/bounds_check_2.f
gfortran.dg/bounds_check_3.f90
gfortran.dg/bounds_check_4.f90
gfortran.dg/bounds_temporaries_1.f90

I only found http://gcc.gnu.org/ml/fortran/2006-06/msg00119.html
Seemingly, this is now implemented, but you never committed this test.

Tobias


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