| 1 |
! { dg-do run } |
| 2 |
! PR98017 - [8/9/10/11 Regression] Suspected regression using PACK |
| 3 |
|
| 4 |
program p |
| 5 |
implicit none |
| 6 |
character(*), parameter :: s(1) = ['abc()'] |
| 7 |
character(*), parameter :: t(*) = s(:)(:1) |
| 8 |
if (len (pack (s, s(:)(:1) == 'a')) /= len (s)) stop 1 |
| 9 |
if (any (pack (s, s(:)(:1) == 'a') /= s)) stop 2 |
| 10 |
if (len (pack (s, t == 'a')) /= len (s)) stop 3 |
| 11 |
if (any (pack (s, t == 'a') /= s)) stop 4 |
| 12 |
if (len (pack (s(:)(1:5), t == 'a')) /= len (s)) stop 5 |
| 13 |
if (any (pack (s(:)(1:5), t == 'a') /= s)) stop 6 |
| 14 |
end |