mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-10 08:22:11 +01:00
15 lines
369 B
Fortran
15 lines
369 B
Fortran
! @@name: fort_sp_common.5
|
|
! @@type: F-fixed
|
|
! @@operation: compile
|
|
! @@expect: ct-error
|
|
! @@version: pre_omp_3.0
|
|
SUBROUTINE COMMON_WRONG2()
|
|
COMMON /C/ X,Y
|
|
! Incorrect: common block C cannot be declared both
|
|
! shared and private
|
|
!$OMP PARALLEL PRIVATE (/C/), SHARED(/C/)
|
|
! do work here
|
|
!$OMP END PARALLEL
|
|
|
|
END SUBROUTINE COMMON_WRONG2
|