mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-10 16:32:11 +01:00
14 lines
312 B
Fortran
14 lines
312 B
Fortran
! @@name: associate.1
|
|
! @@type: F-fixed
|
|
! @@operation: compile
|
|
! @@expect: ct-error
|
|
! @@version: omp_4.0
|
|
program example_broken
|
|
real :: a, c
|
|
associate (b => a)
|
|
!$omp parallel private(b, c) ! invalid to privatize b
|
|
c = 2.0*b
|
|
!$omp end parallel
|
|
end associate
|
|
end program
|