URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [fmt_error_3.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do compile }! PR fortran/29835! Check for improved format error messages with correct locus and more detailed! "unexpected element" messages.SUBROUTINE format_labelsIMPLICIT NONE1 FORMAT (A, &A, &Q, & ! { dg-error "Unexpected element 'Q'" }A)2 FORMAT (A, &I, & ! { dg-error "Nonnegative width" }A)END SUBROUTINE format_labelsSUBROUTINE format_stringsIMPLICIT NONECHARACTER(len=32), PARAMETER :: str = "hello"INTEGER :: xPRINT '(A, Q, A)', & ! { dg-error "Unexpected element 'Q'" }str, str, str ! { dg-bogus "Unexpected element" }PRINT '(A, ' // & ! { dg-error "Nonnegative width" }' I, ' // &' A)', str, str, str ! { dg-bogus "Nonnegative width" }READ '(Q)', & ! { dg-error "Unexpected element 'Q'" }x ! { dg-bogus "Unexpected element" }END SUBROUTINE format_strings
