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_l.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }! { dg-options "-std=gnu -pedantic -ffree-line-length-none" }! Test the GNU extension of a L format descriptor without width! PR libfortran/21303program test_llogical(kind=1) :: l1logical(kind=2) :: l2logical(kind=4) :: l4logical(kind=8) :: l8character(len=20) :: strl1 = .true.write (str,"(L)") l1 ! { dg-warning "Extension: Missing positive width after L descriptor" }read (str,"(L)") l1 ! { dg-warning "Extension: Missing positive width after L descriptor" }if (l1 .neqv. .true.) call abortl2 = .true.write (str,"(L)") l2 ! { dg-warning "Extension: Missing positive width after L descriptor" }read (str,"(L)") l2 ! { dg-warning "Extension: Missing positive width after L descriptor" }if (l2 .neqv. .true.) call abortl4 = .true.write (str,"(L)") l4 ! { dg-warning "Extension: Missing positive width after L descriptor" }read (str,"(L)") l4 ! { dg-warning "Extension: Missing positive width after L descriptor" }if (l4 .neqv. .true.) call abortl8 = .true.write (str,"(L)") l8 ! { dg-warning "Extension: Missing positive width after L descriptor" }read (str,"(L)") l8 ! { dg-warning "Extension: Missing positive width after L descriptor" }if (l8 .neqv. .true.) call abortl1 = .false.write (str,"(L)") l1 ! { dg-warning "Extension: Missing positive width after L descriptor" }read (str,"(L)") l1 ! { dg-warning "Extension: Missing positive width after L descriptor" }if (l1 .neqv. .false.) call abortl2 = .false.write (str,"(L)") l2 ! { dg-warning "Extension: Missing positive width after L descriptor" }read (str,"(L)") l2 ! { dg-warning "Extension: Missing positive width after L descriptor" }if (l2 .neqv. .false.) call abortl4 = .false.write (str,"(L)") l4 ! { dg-warning "Extension: Missing positive width after L descriptor" }read (str,"(L)") l4 ! { dg-warning "Extension: Missing positive width after L descriptor" }if (l4 .neqv. .false.) call abortl8 = .false.write (str,"(L)") l8 ! { dg-warning "Extension: Missing positive width after L descriptor" }read (str,"(L)") l8 ! { dg-warning "Extension: Missing positive width after L descriptor" }if (l8 .neqv. .false.) call abortend program test_l! { dg-output "At line 14 of file.*" }! { dg-output "Fortran runtime warning: Positive width required in format(\n|\r\n|\r)" }! { dg-output "At line 15 of file.*" }! { dg-output "Fortran runtime warning: Positive width required in format(\n|\r\n|\r)" }! { dg-output "At line 19 of file.*" }! { dg-output "Fortran runtime warning: Positive width required in format(\n|\r\n|\r)" }! { dg-output "At line 20 of file.*" }! { dg-output "Fortran runtime warning: Positive width required in format(\n|\r\n|\r)" }! { dg-output "At line 24 of file.*" }! { dg-output "Fortran runtime warning: Positive width required in format(\n|\r\n|\r)" }! { dg-output "At line 25 of file.*" }! { dg-output "Fortran runtime warning: Positive width required in format(\n|\r\n|\r)" }! { dg-output "At line 29 of file.*" }! { dg-output "Fortran runtime warning: Positive width required in format(\n|\r\n|\r)" }! { dg-output "At line 30 of file.*" }! { dg-output "Fortran runtime warning: Positive width required in format(\n|\r\n|\r)" }! { dg-output "At line 34 of file.*" }! { dg-output "Fortran runtime warning: Positive width required in format(\n|\r\n|\r)" }! { dg-output "At line 35 of file.*" }! { dg-output "Fortran runtime warning: Positive width required in format(\n|\r\n|\r)" }! { dg-output "At line 39 of file.*" }! { dg-output "Fortran runtime warning: Positive width required in format(\n|\r\n|\r)" }! { dg-output "At line 40 of file.*" }! { dg-output "Fortran runtime warning: Positive width required in format(\n|\r\n|\r)" }! { dg-output "At line 44 of file.*" }! { dg-output "Fortran runtime warning: Positive width required in format(\n|\r\n|\r)" }! { dg-output "At line 45 of file.*" }! { dg-output "Fortran runtime warning: Positive width required in format(\n|\r\n|\r)" }! { dg-output "At line 49 of file.*" }! { dg-output "Fortran runtime warning: Positive width required in format(\n|\r\n|\r)" }! { dg-output "At line 50 of file.*" }! { dg-output "Fortran runtime warning: Positive width required in format(\n|\r\n|\r)" }
