xref: /llvm-project/flang/test/Semantics/data11.f90 (revision 1c91d9bdea3b6c38e8fbce46ec8181a9c0aa26f8)
1! RUN: %flang_fc1 -fdebug-dump-symbols -pedantic %s 2>&1 | FileCheck %s
2! CHECK:  Implied DO index 'j' uses an object of the same name in its bounds expressions
3! CHECK: ObjectEntity type: REAL(4) shape: 1_8:5_8 init:[REAL(4)::1._4,2._4,3._4,4._4,5._4]
4! Verify that the scope of a DATA statement implied DO loop index does
5! not include the bounds expressions (language extension, with warning)
6integer, parameter :: j = 5
7real, save :: a(j)
8data (a(j),j=1,j)/1,2,3,4,5/
9end
10