[LLVM] Fix Maintainers.md formatting (NFC)
[llvm-project.git] / flang / test / Integration / debug-variable-array-dim.f90
blobe68cb46b5f835a06e15270f30378d596e43ac548
1 ! RUN: %flang_fc1 -emit-llvm -debug-info-kind=standalone %s -o - | FileCheck %s
3 subroutine foo(a, n, m, p)
4 integer n, m, p
5 integer :: a(n:m, p)
6 a(1, 2) = 10
7 print *, a
8 end subroutine foo
11 ! CHECK-DAG: ![[VAR0:.*]] = !DILocalVariable(name: "._QFfooEa3"{{.*}}scope: ![[SCOPE:[0-9]+]]{{.*}}flags: DIFlagArtificial)
12 ! CHECK-DAG: ![[VAR1:.*]] = !DILocalVariable(name: "._QFfooEa1"{{.*}}scope: ![[SCOPE]]{{.*}}flags: DIFlagArtificial)
13 ! CHECK-DAG: ![[VAR2:.*]] = !DILocalVariable(name: "._QFfooEa2"{{.*}}scope: ![[SCOPE]]{{.*}}flags: DIFlagArtificial)
14 ! CHECK-DAG: ![[SR1:.*]] = !DISubrange(count: ![[VAR1]], lowerBound: ![[VAR0]])
15 ! CHECK-DAG: ![[SR2:.*]] = !DISubrange(count: ![[VAR2]])
16 ! CHECK-DAG: ![[SR:.*]] = !{![[SR1]], ![[SR2]]}
17 ! CHECK-DAG: ![[TY:.*]] = !DICompositeType(tag: DW_TAG_array_type{{.*}}elements: ![[SR]])
18 ! CHECK-DAG: !DILocalVariable(name: "a"{{.*}}scope: ![[SCOPE]]{{.*}}type: ![[TY]])