blob: 7c6affa06d4abab21ff5b814029f25912ba41838 [file] [log] [blame]
-- { dg-do compile }
-- { dg-options "-fstrub=strict -fdump-ipa-strubm" }
-- { dg-require-effective-target strub }
-- We don't read from the automatic variable, but being an automatic
-- variable, its presence should be enough for the procedure to get
-- strub enabled.
with Strub_Attr;
procedure Strub_Var is
X : Integer := 0;
pragma Machine_Attribute (X, "strub");
begin
X := Strub_Attr.F (0);
end Strub_Var;
-- { dg-final { scan-ipa-dump-times "\[(\]strub \[(\]internal\[)\]\[)\]" 1 "strubm" } }