[flang] add semantics test for sync all
Test a range of acceptable forms of SYNC ALL statements,
including combinations with and without the stat-variable
and errmsg-variable present. Also test that several invalid
forms of SYNC ALL call generate the correct error messages.
An addition of a sync all statement with the correct type for the errmsg specifier, but the incorrect name of the specifier, as you have done here for sync_status, would be a good addition. Perhaps the incorrect specifier name could be close to the correct one, such as saying errormsg=error_message instead of the correct errmsg=error_message.