xref: /llvm-project/flang/test/Semantics/bug121971.f90 (revision bf23ae6d38cfdda3284e8ddb3a296ad44c001a8a)
1! RUN: %python %S/test_errors.py %s %flang_fc1
2subroutine subr(a,b,n,m)
3  real n,m
4!ERROR: Must have INTEGER type, but is REAL(4)
5!ERROR: Must have INTEGER type, but is REAL(4)
6  integer a(n,m)
7!ERROR: Rank of left-hand side is 2, but right-hand side has rank 1
8!ERROR: Subscript expression has rank 2 greater than 1
9  a = a(a,j)
10end
11