| ! { dg-additional-options "-fcheck=bounds -fdump-tree-original" } |
| ! PR fortran/113471 - wrong array bounds check |
| integer, dimension(2) :: c1 = 0 |
| ! no bounds check (can be determined at compile time): |
| ! bounds check involving kk, but no "outside of expected range" |
| integer, intent(in) :: c(:) |
| ! { dg-final { scan-tree-dump-times "below lower bound" 2 "original" } } |
| ! { dg-final { scan-tree-dump-times "above upper bound" 2 "original" } } |
| ! { dg-final { scan-tree-dump-not "outside of expected range" "original" } } |