[WebAssembly] Fix asan issue from https://reviews.llvm.org/D121349
[llvm-project.git] / flang / test / Semantics / omp-single01.f90
bloba12940902904a2461569bef9069ccbcabfcc8bfe
1 ! RUN: %python %S/test_errors.py %s %flang_fc1 -fopenmp
2 ! OpenMP Version 4.5
3 ! 2.7.3 single Construct
4 ! Symbol present on multiple clauses
6 program omp_single
7 integer i
8 i = 10
10 !$omp single private(i)
11 print *, "omp single", i
12 !ERROR: COPYPRIVATE variable 'i' may not appear on a PRIVATE or FIRSTPRIVATE clause on a SINGLE construct
13 !$omp end single copyprivate(i)
15 end program omp_single