Skip to content

Commit

Permalink
Added an XFAIL test case for critical construct name collision
Browse files Browse the repository at this point in the history
  • Loading branch information
NimishMishra committed Dec 13, 2021
1 parent 7008421 commit 04a4c55
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions flang/test/Semantics/critical05.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
! RUN: %python %S/test_symbols.py %s %flang_fc1 -fopenmp
! XFAIL: *
!Checking for name collision of a critical construct with other elements of a program

!DEF: /check_symbols MainProgram
program check_symbols
!DEF: /check_symbols/i ObjectEntity INTEGER(4)
integer i, bar
!REF: /check_symbols/i
foo: do i = 1, 10
end do foo

!$omp critical (foo)
!$omp end critical (foo)

!$omp critical (bar)
!$omp end critical (bar)
end program check_symbols

0 comments on commit 04a4c55

Please sign in to comment.