]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Add test for already fixed PR [PR104826]
authorJakub Jelinek <jakub@redhat.com>
Thu, 6 Mar 2025 16:29:03 +0000 (17:29 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 6 Mar 2025 16:29:03 +0000 (17:29 +0100)
ICE on this test was fixed by r15-2131.  This just adds test for it.

2025-03-06  Jakub Jelinek  <jakub@redhat.com>

PR fortran/104826
* gfortran.dg/gomp/pr104826.f90: New test.

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

diff --git a/gcc/testsuite/gfortran.dg/gomp/pr104826.f90 b/gcc/testsuite/gfortran.dg/gomp/pr104826.f90
new file mode 100644 (file)
index 0000000..9eae257
--- /dev/null
@@ -0,0 +1,8 @@
+! PR fortran/104826
+program pr104826
+  character(:), allocatable :: x
+  save
+  !$omp target
+  x = 'abc'
+  !$omp end target
+end