File: data07.f90

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,998,492 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (12 lines) | stat: -rw-r--r-- 381 bytes parent folder | download | duplicates (21)
1
2
3
4
5
6
7
8
9
10
11
12
! RUN: %python %S/test_errors.py %s %flang_fc1
module m
 contains
  subroutine s1
    !ERROR: DATA statement initializations affect 'jb(5_8)' more than once
    integer :: ja(10), jb(10)
    data (ja(k),k=1,9,2) / 5*1 / ! ok
    data (ja(k),k=10,2,-2) / 5*2 / ! ok
    data (jb(k),k=1,9,2) / 5*1 / ! ok
    data (jb(k),k=2,10,3) / 3*2 / ! conflict at 5
  end subroutine
end module