gcc/testsuite/gfortran.dg/analyzer/pr96949.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-additional-options "-Wno-analyzer-too-complex --param analyzer-max-svalue-depth=0" } |
| 3 | |
| 4 | program n6 |
| 5 | integer :: ck(2,2) |
| 6 | integer :: ac |
| 7 | |
| 8 | data ck /4 * 1/ |
| 9 | |
| 10 | call x9() |
| 11 | |
| 12 | contains |
| 13 | subroutine x9() |
| 14 | if (ck(2, 1) == 1) then |
| 15 | ac = 1 |
| 16 | else |
| 17 | ac = 0 |
| 18 | end if |
| 19 | end subroutine x9 |
| 20 | end program n6 |