summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr17472.f
blob: 4a1ecd937befb7c12c2ab563e2cc862a3bee9771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
c { dg-do run }
c pr 17472
c test namelist handles arrays
c Based on example provided by thomas.koenig@online.de

       integer a(10), ctr
       data a / 1,2,3,4,5,6,7,8,9,10 /
       namelist /ints/ a
       do ctr = 1,10
         if (a(ctr).ne.ctr) call abort ()
       end do
       end