This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add semantics test for atomic_add subroutine
ClosedPublic

Authored by ngeorge1098 on Aug 9 2022, 5:38 PM.

Diff Detail

Event Timeline

ngeorge1098 created this revision.Aug 9 2022, 5:38 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
ngeorge1098 requested review of this revision.Aug 9 2022, 5:38 PM
ktras requested changes to this revision.Aug 16 2022, 2:57 PM

The test looks great, please see the couple of suggestions in the in line comments.

flang/test/Semantics/atomic01.f90
12

I recommend renaming sync_status to status or something like that, since this program tests an atomic subroutine, not a synchronization statement, so the variable name might be a bit misleading.

44

This is a duplicate of the call on line 17. Since atom may be a coindexed object, this call plus the comment above should be removed.

This revision now requires changes to proceed.Aug 16 2022, 2:57 PM

Remove the duplicate standards-conforming call from the list of
non-standards-conforming calls. Changed sync_status to status

ngeorge1098 marked 2 inline comments as done.Aug 23 2022, 4:38 PM
ktras accepted this revision.Aug 23 2022, 4:52 PM

LGTM

This revision is now accepted and ready to land.Aug 23 2022, 4:52 PM
This revision was automatically updated to reflect the committed changes.