flang/test/Lower/OpenMP/debug_info_conflict.f90
raw| 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 | |
| 7 | subroutine bar (b) |
| 8 | integer :: a, b |
| 9 | !$omp parallel |
| 10 | do a = 1, 10 |
| 11 | b = a |
| 12 | end do |
| 13 | !$omp end parallel |
| 14 | end subroutine bar |
| 15 | |
| 16 | ! CHECK-NOT: conflicting debug info for argument |