annotate gcc/testsuite/gfortran.dg/null_7.f90 @ 132:d34655255c78

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 !
kono
parents:
diff changeset
3 ! PR fortran/55763
kono
parents:
diff changeset
4 !
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 implicit none
kono
parents:
diff changeset
7 integer, pointer :: x
kono
parents:
diff changeset
8 class(*), pointer :: y
kono
parents:
diff changeset
9 integer, pointer :: p1 => null(x) ! { dg-error "NULL.. initialization at .1. may not have MOLD" }
kono
parents:
diff changeset
10 integer, pointer :: p2 => null(mold=x) ! { dg-error "NULL.. initialization at .1. may not have MOLD" }
kono
parents:
diff changeset
11 class(*), pointer :: p3 =>null(x) ! { dg-error "NULL.. initialization at .1. may not have MOLD" }
kono
parents:
diff changeset
12 type t
kono
parents:
diff changeset
13 real, pointer :: a1 => null(x) ! { dg-error "NULL.. initialization at .1. may not have MOLD" }
kono
parents:
diff changeset
14 real, pointer :: a2 => null ( mold = x) ! { dg-error "NULL.. initialization at .1. may not have MOLD" }
kono
parents:
diff changeset
15 class(*), pointer :: a3 => null(mold = x ) ! { dg-error "NULL.. initialization at .1. may not have MOLD" }
kono
parents:
diff changeset
16 end type t
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 x => null(x) ! OK
kono
parents:
diff changeset
19 y => null(y) ! OK
kono
parents:
diff changeset
20 end