annotate gcc/testsuite/gfortran.dg/char_pointer_assign_6.f90 @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +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 ! PR 31821
kono
parents:
diff changeset
3 program main
kono
parents:
diff changeset
4 character (len=4), pointer:: s1
kono
parents:
diff changeset
5 character (len=20), pointer :: p1
kono
parents:
diff changeset
6 character (len=4) :: c
kono
parents:
diff changeset
7 s1 = 'abcd'
kono
parents:
diff changeset
8 p1 => s1(2:3) ! { dg-error "Unequal character lengths \\(20/2\\)" }
kono
parents:
diff changeset
9 p1 => c(1:) ! { dg-error "Unequal character lengths \\(20/4\\)" }
kono
parents:
diff changeset
10 p1 => c(:4) ! { dg-error "Unequal character lengths \\(20/4\\)" }
kono
parents:
diff changeset
11 end