forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added an XFAIL test case for critical construct name collision
- Loading branch information
1 parent
7008421
commit 04a4c55
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |