[flang][openacc] Add clause validity tests for the update directive
authorValentin Clement <clementval@gmail.com>
Fri, 4 Dec 2020 19:38:31 +0000 (14:38 -0500)
committerclementval <clementval@gmail.com>
Fri, 4 Dec 2020 19:38:49 +0000 (14:38 -0500)
commite46065433466eec50903fec6f40a09cf26fa801e
tree6b45e2f8d58854f2dc80db82e3539bf32686991d
parentf69936f52973750d4746624abf9b6607827b08b1
[flang][openacc] Add clause validity tests for the update directive

Add couple of clause validity tests for the update directive and check for
the restriction where at least self, host or device clause must appear on the directive.

Reviewed By: sameeranjoshi

Differential Revision: https://reviews.llvm.org/D92447
flang/lib/Semantics/check-acc-structure.cpp
flang/test/Semantics/acc-clause-validity.f90