Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GNATCOV Instrument assigns wrong convention to body-internal null subprograms #18

Open
andrewathalye opened this issue Aug 4, 2024 · 0 comments

Comments

@andrewathalye
Copy link

andrewathalye commented Aug 4, 2024

Take the following example:

package Test is
   procedure Run;
end Test;

package body Test is
   procedure C_Subp is null;
   pragma Convention (C, C_Subp);

   procedure Run is
   begin
      C_Subp;
   end Run;
end Test;

The test harness will generate a subprogram with no specified convention, which is a compiler error.

This is easy to fix manually, but ideally shouldn’t happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant