blob: 5ca1792fbd216d907e25c0f92c4e01f2d2fc73f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
-- { dg-do compile }
-- { dg-options "-O" }
with System.Machine_code; use System.Machine_code;
procedure Constant3 is
c : Integer := -1;
r : Integer;
procedure Conv (res : out Integer; v : Integer) is
v1 : constant Integer := v;
begin
Asm ("", Integer'Asm_output ("=m", res), Integer'Asm_input("m", v1));
end;
pragma Inline_Always (Conv);
begin
Conv (r, c);
end;
|