Hello Harald,
the subject already says it: we emitted the wrong C prototypes for
deferred shape and deferred length dummies of interoperable procedures.
Here we need to pass pointers to a CFI_cdesc_t structure.
There seems to be no existing testcase exercising -fc-prototypes,
unless I missed it. This one tests the output emitted by the frontend.
Thanks for finding this method! I had not come across
dg-begin-multiline-output before. PR 120220 is about lack of testing
for -fc-prototypes; we can use that for other bugs fixed in the past; we
have had some regressions due to the lack of testing.
OK for mainline / backport to 16-branch?
Yes. Thanks for the patch!
Best regards
Thomas