Test a range of acceptable forms of SYNC IMAGES statements,
including combinations with and without the stat-variable
and errmsg-variable present. Also test that several invalid
forms of SYNC IMAGES call generate the correct error messages.
Details
Diff Detail
Event Timeline
The variables superfluous_stat, superfluous_errmsg, co_indexed_integer, and co_indexed_character have not been declared and so you are testing different errors than I believe you intended to, but otherwise it looks good!
LGTM. The only note is that this test, like the sync all test in differential D114181, should pass if you take away the XFAIL directive, but doesn't because flang doesn't currently enforce the following constraints stated in the standard: C1171 - that no specifier shall appear more than once in a given sync-stat-list, and C1172 - that a stat-variable or errmsg-variable in a sync-stat shall not be a coindexed object, C1173 - that an image-set that is an int-expr shall be scalar or of rank one, and C1174 that the value of image-set shall not depend on the value of stat-variable or errmsg-variable. It seems appropriate to open up an issue on the github repository pointing this out after this commit is pushed, and referencing this test in the issue.