PR 94347 - add a test case for something a PR has fixed itself.
authorThomas König <tkoenig@gcc.gnu.org>
Sun, 19 Apr 2020 12:05:46 +0000 (14:05 +0200)
committerThomas König <tkoenig@gcc.gnu.org>
Sun, 19 Apr 2020 12:05:46 +0000 (14:05 +0200)
2020-04-19  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/94347
* gfortran.dg/char_pointer_init_1.f90: New test.

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

index 315a29bd05fc24120aa4e172af1b49ad5756b4fa..122c737b189725ca9e98442b7a6a467abca67a17 100644 (file)
@@ -1,3 +1,8 @@
+2020-04-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
+
+       PR fortran/94347
+       * gfortran.dg/char_pointer_init_1.f90: New test.
+
 2020-04-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
        PR fortran/57129
diff --git a/gcc/testsuite/gfortran.dg/pointer_init_12.f90 b/gcc/testsuite/gfortran.dg/pointer_init_12.f90
new file mode 100644 (file)
index 0000000..b2bce01
--- /dev/null
@@ -0,0 +1,8 @@
+! { dg-do compile }
+! PR 94347 - this used to cause an ICE.
+! Original test case by "Serghei".
+program main
+    character(10), target :: a
+    character(:), pointer :: p => null()
+    p => a
+end program main