aboutsummaryrefslogtreecommitdiff
path: root/flang/test/Semantics/OpenMP/omp-atomic-write-pointer-derived.f90
blob: 6268b0bc07d57f99789f71492c22af5827aee404 (plain)
1
2
3
4
5
6
7
8
! RUN: not %flang_fc1 -fopenmp -fsyntax-only %s 2>&1 | FileCheck %s
type t
end type
type(t), pointer :: a1, a2
!$omp atomic write
a1 = a2
! CHECK: error: ATOMIC operation requires an intrinsic scalar variable; 'a1' has the POINTER attribute and derived type 't'
end