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: [gfortran] PATCH Fix PR 18537


Steve Kargl <sgk@troutmask.apl.washington.edu> writes:

> But, I can't write a dejagnu that does not FAIL.
> I've tried the following:
>
> ! { dg-do compile }
> ! { dg-options -Wtabs }
> ! Check for embedded tabs, which are illegal characters.
> program tab
>   integer i
>   i = 1
> ! if (i .eq. 1)TABi = i + 1
>   if (i .eq. 1)	i = i + 1 ! { dg-warning "tab character" "" }
> end program tab
>
> gfortran.log shows
>
> Executing on host: /home/kargl/gcc/obj41/gcc/testsuite/../gfortran \
>  -B/home/kargl/gcc/obj41/gcc/testsuite/../ \
> /home/kargl/gcc/gcc41/gcc/testsuite/gfortran.dg/PR18537.f90 -O -Wtabs \
>  -S  -o PR18537.s    (timeout = 300)
> Warning: tab character in PR18537.f90 at line 8
> output is:
> Warning: tab character in PR18537.f90 at line 8

The dg framework expects the line number to precede the text to match.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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