Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gfortran.dg / gomp / crayptr2.f90
blob0032080c792337df1179b715d6a723a74e53f4c5
1 ! { dg-do compile }
2 ! { dg-options "-fopenmp -fcray-pointer" }
3 ! { dg-require-effective-target tls_native }
5 module crayptr2
6 integer :: e ! { dg-error "CRAY POINTEE attribute conflicts with THREADPRIVATE" }
7 pointer (ip5, e)
9 ! The standard is not very clear about this.
10 ! Certainly, Cray pointees can't be SAVEd, nor they can be
11 ! in COMMON, so the only way to make threadprivate Cray pointees would
12 ! be if they are module variables. But threadprivate pointees don't
13 ! make any sense anyway.
15 !$omp threadprivate (e)
17 end module crayptr2