re PR fortran/48117 (ICE: OpenMP; in build_int_cst_wide, at tree.c:1178)
authorJakub Jelinek <jakub@redhat.com>
Thu, 7 Apr 2011 18:31:43 +0000 (20:31 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 7 Apr 2011 18:31:43 +0000 (20:31 +0200)
PR fortran/48117
* gfortran.dg/gomp/pr48117.f90: New test.

From-SVN: r172119

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/pr48117.f90 [new file with mode: 0644]

index f17362e5468d08d9daa7c08b8baccd977104e1b9..01b95ae6454cee75911a18744f4285da1fca13b2 100644 (file)
@@ -1,5 +1,8 @@
 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
 
+       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 (file)
index 0000000..bc8ad9b
--- /dev/null
@@ -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