Added semantics tests for aspects of CHANGE TEAM statements which are not duplicates from FORM TEAM statements.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks @hussainjk for these tests. Per my comment inline of change_team01c.f90, the branching that is specified by the standard was not tested. However, locally I began to work on adding the ability for flang to check whether branching occurs or not in a change-team-construct, and while doing so I began to add to my local copy of your test to check my implementation. As I know that your focus is no longer on testing, if you update this patch and remove lines 11-24 from that test, then I can approve this patch. I will then add to your tests checks for branching in the patch that I submit to add additional checks on change-team-construct in flang.
flang/test/Semantics/change_team01c.f90 | ||
---|---|---|
11 | Per the 2018 Fortran standard 11.2 "Branching can be caused by a GO TO statement, a computed GO TO statement, a CALL statement that has an alt-return-spec, or an input/output statement that has an END=, EOR=, or ERR= specifier." So these tests from lines 11-24 do not test the constraint C1110, which I believe you intended to test. |
Per the 2018 Fortran standard 11.2 "Branching can be caused by a GO TO statement, a computed GO TO statement, a CALL statement that has an alt-return-spec, or an input/output statement that has an END=, EOR=, or ERR= specifier." So these tests from lines 11-24 do not test the constraint C1110, which I believe you intended to test.