-- { dg-do compile } with System.Storage_Elements; use System, System.Storage_Elements; function Inline12 return Natural is A : Address := Inline12'Code_Address; begin while A mod Address'Alignment /= 0 loop A := A + 1; end loop; return Natural (A - Inline12'Code_Address); end; -- { dg-final { scan-assembler-not "mod|div" } }