Debian Codegraph @

gcc/testsuite/gfortran.dg/pointer_assign_12.f90

raw
1 ! { dg-do compile }
2 ! PR 70260 - this used to ICE
3 ! Original test case by Gehard Steinmetz
4 module m
5 interface gkind
6 procedure g
7 end interface
8 contains
9 integer function g()
10 g => 1 ! { dg-error "Pointer assignment target cannot be a constant" }
11 end
12 subroutine f(x)
13 character(kind=kind(gkind())) :: x
14 end
15 end