gcc/libgomp/testsuite/libgomp.fortran/pr88463-2.f90
Jakub Jelinek 7a289b7d0a re PR fortran/88463 (Rejects conforming source, OpenMP Parallel region Default(None) reference to module parameter array, separate source)
PR fortran/88463
	* trans-openmp.c (gfc_omp_predetermined_sharing): Handle TREE_READONLY
	VAR_DECLs with DECL_EXTERNAL like those with TREE_STATIC.

	* testsuite/libgomp.fortran/pr88463-1.f90: New test.
	* testsuite/libgomp.fortran/pr88463-2.f90: New test.

From-SVN: r267069
2018-12-12 23:49:35 +01:00

10 lines
224 B
Fortran

! PR fortran/88463
! { dg-do link }
! { dg-options "-fopenmp" }
! { dg-additional-sources pr88463-1.f90 }
module pr88463_2
integer, parameter :: a = 1
real, parameter :: b(4) = (/ 2., 3., 4., 5. /)
end module pr88463_2