xref: /llvm-project/flang/test/Lower/OpenMP/debug_info_conflict.f90 (revision 5bfc444524d74b714b9efb2dc00c7bc36a3838e2)
1! Tests that there no debug-info conflicts arise because of DI attached to nested
2! OMP regions arguments.
3
4! RUN: %flang -c -fopenmp -g -mmlir --openmp-enable-delayed-privatization=true \
5! RUN:   %s -o - 2>&1 | FileCheck %s
6
7subroutine bar (b)
8  integer :: a, b
9!$omp parallel
10  do a = 1, 10
11    b = a
12  end do
13!$omp end parallel
14end subroutine bar
15
16! CHECK-NOT: conflicting debug info for argument
17