[Chapel Merge] Resolve c for loop primitive

Branch: refs/heads/main
Revision: 131072f
Author: benharsh
Link: Resolve c for loop primitive by benharsh · Pull Request #19908 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #19908 from benharsh/resolve-c-for-loop

Resolve c for loop primitive

Resolves https://github.com/Cray/chapel-private/issues/3326

Thanks to #19819 this is a fairly trivial change, which simply tells the compiler to resolve a 'C for loop' primitive as a bool. Some later lowering pass will handle any necessary transformations. Also adds a new mini-test for this case.

Trivial, not reviewed.

Modified Files:
M compiler/dyno/lib/resolution/prims.cpp

M compiler/dyno/test/resolution/testLoopIndexVars.cpp

Compare: https://github.com/chapel-lang/chapel/compare/b8142ac80842...131072f52958