From c714e2423e06b8960a240c0293eb2d4da1e9d10d Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 7 Apr 2011 20:31:43 +0200 Subject: [PATCH] re PR fortran/48117 (ICE: OpenMP; in build_int_cst_wide, at tree.c:1178) PR fortran/48117 * gfortran.dg/gomp/pr48117.f90: New test. From-SVN: r172119 --- gcc/testsuite/ChangeLog | 3 +++ gcc/testsuite/gfortran.dg/gomp/pr48117.f90 | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 gcc/testsuite/gfortran.dg/gomp/pr48117.f90 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f17362e5468..01b95ae6454 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2011-04-07 Jakub Jelinek + PR fortran/48117 + * gfortran.dg/gomp/pr48117.f90: New test. + PR debug/48343 * gcc.dg/torture/pr48343.c: New test. diff --git a/gcc/testsuite/gfortran.dg/gomp/pr48117.f90 b/gcc/testsuite/gfortran.dg/gomp/pr48117.f90 new file mode 100644 index 00000000000..bc8ad9bc35e --- /dev/null +++ b/gcc/testsuite/gfortran.dg/gomp/pr48117.f90 @@ -0,0 +1,11 @@ +! PR fortran/48117 +! { dg-do compile } +! { dg-options "-O2 -fopenmp" } + +subroutine foo(x) + character(len=*), optional :: x + character(len=80) :: v + !$omp master + if (present(x)) v = adjustl(x) + !$omp end master +end subroutine foo -- 2.30.2