| 1 |
-- { dg-do compile } |
| 2 |
-- { dg-require-effective-target strub } |
| 3 |
|
| 4 |
procedure Strub_Renm is |
| 5 |
procedure P (X : Integer); |
| 6 |
pragma Machine_Attribute (P, "strub", "at-calls"); |
| 7 |
|
| 8 |
function F return Integer; |
| 9 |
pragma Machine_Attribute (F, "strub", "internal"); |
| 10 |
|
| 11 |
procedure Q (X : Integer) renames P; -- { dg-error "requires the same .strub. mode" } |
| 12 |
|
| 13 |
function G return Integer renames F; |
| 14 |
pragma Machine_Attribute (G, "strub", "callable"); -- { dg-error "requires the same .strub. mode" } |
| 15 |
|
| 16 |
procedure P (X : Integer) is null; |
| 17 |
function F return Integer is (0); |
| 18 |
|
| 19 |
begin |
| 20 |
P (F); |
| 21 |
Q (G); |
| 22 |
end Strub_Renm; |