summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/machine_code1.adb
blob: 2e03a91890e2658fa605449c7293ef3a73b11bb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
-- { dg-do compile }
-- { dg-options "-gnatws" }

with System.Machine_Code; use System.Machine_Code;
procedure machine_code1 is
   A_Float        : Float;
   An_Other_Float : Float := -99999.0;
begin
   An_Other_Float := An_Other_Float - A_Float;
   Asm("", Inputs => (Float'Asm_Input ("m", A_Float)));
end;