[flang] Add semantics tests for lock-stmt
authorKatherine Rasmussen <krasmussen@lbl.gov>
Wed, 19 Oct 2022 16:16:28 +0000 (10:16 -0600)
committerKatherine Rasmussen <krasmussen@lbl.gov>
Wed, 26 Oct 2022 18:21:57 +0000 (11:21 -0700)
commitfccff3f11a7d23bd28b6d92b6ae3f9d33633734a
treebc75f63703d54b90f449127c27491050f3a6929d
parent2cd20ad90e36d7982b6e882641f87a3e8965e0f7
[flang] Add semantics tests for lock-stmt

Add three tests for lock-stmt. The first includes
standard-conforming statements, the second includes
non-standard-conforming statements because of errors where
something unexpected occurs, such as a missing lock-variable,
and the third includes non-standard-conforming statements
because of semantic errors, such as type or rank mismatches.

Reviewed By: rouson

Differential Revision: https://reviews.llvm.org/D136628
flang/test/Semantics/lockstmt01.f90 [new file with mode: 0644]
flang/test/Semantics/lockstmt02.f90 [new file with mode: 0644]
flang/test/Semantics/lockstmt03.f90 [new file with mode: 0644]