-- { dg-do compile } -- { dg-require-effective-target store_merge } -- { dg-options "-O2 -fdump-tree-store-merging" } with Opt71_Pkg; use Opt71_Pkg; procedure Opt71a (X : not null access Rec; Size : Positive) is begin X.all := (Flag => True, Size => Size); end; -- { dg-final { scan-tree-dump "Merging successful" "store-merging" } }