Commit 97dae02b by Manfred Schwarb Committed by Mikael Morin

bounds_check_4.f90: Add dg-options "-fbounds-check".

2013-01-15  Manfred Schwarb  <manfred99@gmx.ch>
	    Harald Anlauf  <anlauf@gmx.de>

	* gfortran.dg/bounds_check_4.f90: Add dg-options "-fbounds-check".
	* gfortran.dg/bounds_check_5.f90: Likewise.
	* gfortran.dg/class_array_10.f03: Fix syntax of dg-directive.
	* gfortran.dg/continuation_9.f90: Likewise.
	* gfortran.dg/move_alloc_13.f90: Likewise.
	* gfortran.dg/structure_constructor_11.f90: Likewise.
	* gfortran.dg/tab_continuation.f: Likewise.
	* gfortran.dg/warning-directive-2.F90: Likewise.
	* gfortran.dg/coarray_lib_token_4.f90: Remove misspelled directive.


Co-Authored-By: Harald Anlauf <anlauf@gmx.de>

From-SVN: r195217
parent 9fa633fc
2013-01-15 Manfred Schwarb <manfred99@gmx.ch>
Harald Anlauf <anlauf@gmx.de>
* gfortran.dg/bounds_check_4.f90: Add dg-options "-fbounds-check".
* gfortran.dg/bounds_check_5.f90: Likewise.
* gfortran.dg/class_array_10.f03: Fix syntax of dg-directive.
* gfortran.dg/continuation_9.f90: Likewise.
* gfortran.dg/move_alloc_13.f90: Likewise.
* gfortran.dg/structure_constructor_11.f90: Likewise.
* gfortran.dg/tab_continuation.f: Likewise.
* gfortran.dg/warning-directive-2.F90: Likewise.
* gfortran.dg/coarray_lib_token_4.f90: Remove misspelled directive.
2013-01-15 Janis Johnson <janisjo@codesourcery.com>
* gcc.target/arm/fma.c: Skip for conflicting multilib options.
......
! { dg-do run }
! { dg-options "-fbounds-check" }
subroutine foo(n,x)
implicit none
integer, intent(in) :: n
......
! { dg-do run }
! { dg-options "-fbounds-check" }
! This tests the fix for PR30190, in which the array reference
! in the associated statement would cause a segfault.
!
......
! { dg-do compile}
! { dg-do compile }
!
! PR fortran/41587
! This program was leading to an ICE related to class allocatable arrays
......
......@@ -40,7 +40,6 @@ end program test_caf
! { dg-final { scan-tree-dump-times "foo \\(struct array2_integer\\(kind=4\\) & restrict x, struct array2_integer\\(kind=4\\) & restrict y, integer\\(kind=4\\) & restrict test, void . restrict caf_token.\[0-9\]+, integer\\(kind=.\\) caf_offset.\[0-9\]+, void . restrict caf_token.\[0-9\]+, integer\\(kind=.\\) caf_offset.\[0-9\]+\\)" 1 "original" } }
!
! { dg-final { scan-tree-dump-times "bar \\(&parm.\[0-9\]+, caf_token.\[0-9\]+, \\(\\(integer\\(kind=.\\)\\) parm.\[0-9\]+.data - \\(integer\\(kind=.\\)\\) x.\[0-9\]+\\) \\+ caf_offset.\[0-9\]+\\);" 1 "original" } }
! { d_g-final { scan-tree-dump-times "bar \\(&parm.\[0-9\]+, caf_token.\[0-9\]+, \\(\\(integer\\(kind=.\\) parm.\[0-9\]+.data - \\(integer\\(kind=.\\)\\) x.\[0-9\]+\\) \\+ caf_offset.\[0-9\]+\\);" 1 "original" } }
!
! { dg-final { scan-tree-dump-times "expl \\(\\(integer\\(kind=4\\).0:. .\\) parm.\[0-9\]+.data, caf_token.\[0-9\]+, \\(\\(integer\\(kind=.\\)\\) parm.\[0-9\]+.data - \\(\\(integer\\(kind=.\\)\\) y.\[0-9\]+\\) \\+ caf_offset.\[0-9\]+\\);" 0 "original" } }
!
......
......@@ -4,6 +4,6 @@
&
&
end
! { dg-warning "not allowed by itself in line 3" "" {target "*-*-*"} 0 }
! { dg-warning "not allowed by itself in line 4" "" {target "*-*-*"} 0 }
! { dg-warning "not allowed by itself in line 5" "" {target "*-*-*"} 0 }
! { dg-warning "not allowed by itself in line 3" "" { target *-*-* } 0 }
! { dg-warning "not allowed by itself in line 4" "" { target *-*-* } 0 }
! { dg-warning "not allowed by itself in line 5" "" { target *-*-* } 0 }
! { dg-do run}
! { dg-do run }
!
! PR fortran/51970
! PR fortran/51977
......
! { dg-do run}
! { dg-do run }
! { dg-options "-fdump-tree-original" }
!
! PR fortran/54603
......
......@@ -9,7 +9,7 @@
INTEGER NAXIS(0:MAPMAX,LUMIN:LUMAX),NAXIS1(0:MAPMAX,LUMIN:LUMAX),
1NAXIS2(0:MAPMAX,LUMIN:LUMAX),NAXIS3(0:MAPMAX,LUMIN:LUMAX)
end
! { dg-warning "Nonconforming tab character in column 1 of line 8" "Nonconforming tab" {target "*-*-*"} 0 }
! { dg-warning "Nonconforming tab character in column 1 of line 9" "Nonconforming tab" {target "*-*-*"} 0 }
! { dg-warning "Nonconforming tab character in column 1 of line 10" "Nonconforming tab" {target "*-*-*"} 0 }
! { dg-warning "Nonconforming tab character in column 1 of line 11" "Nonconforming tab" {target "*-*-*"} 0 }
! { dg-warning "Nonconforming tab character in column 1 of line 8" "Nonconforming tab" { target *-*-* } 0 }
! { dg-warning "Nonconforming tab character in column 1 of line 9" "Nonconforming tab" { target *-*-* } 0 }
! { dg-warning "Nonconforming tab character in column 1 of line 10" "Nonconforming tab" { target *-*-* } 0 }
! { dg-warning "Nonconforming tab character in column 1 of line 11" "Nonconforming tab" { target *-*-* } 0 }
! { dg-do preprocess }
! { dg-options "-std=f95 -fdiagnostics-show-option -Werror=cpp" }
! { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 }
! { dg-message "some warnings being treated as errors" "" { target *-*-* } 0 }
#warning "Printed"
! { dg-error "\"Printed\" .-Werror=cpp." "" { target *-*-* } 4 }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment