[Chapel Merge] dlopen: Fix another bug in `transformTypeForPointer`

Branch: refs/heads/main
Revision: eac4f5e37184f698c968bb439e5716a5d5f09c24
Author: dlongnecke-cray
Link: dlopen: Fix another bug in `transformTypeForPointer` by dlongnecke-cray · Pull Request #28627 · chapel-lang/chapel · GitHub
Log Message:
dlopen: Fix another bug in transformTypeForPointer (#28627)

This PR adjusts the code in the compiler function
transformTypeForPointer to handle nested c_ptrConst.

Reviewed by @benharsh. Thanks!

Compare: Comparing 781b97531badca3482ae105a88aa38e655871b49...9f9ff2a52c695ec9e76c2bab982b3c4856ddc92f · chapel-lang/chapel · GitHub

Diff:
M compiler/AST/type.cpp
M compiler/codegen/cg-symbol.cpp
M test/interop/C/PtrConstQualifier.chpl
M test/interop/C/use_PtrConstQualifier.good
M test/interop/C/use_PtrConstQualifier.prediff
https://github.com/chapel-lang/chapel/pull/28627.diff