Skip to content

Commit 57a2cd3

Browse files
authored
Merge pull request #262 from tjj2017/enum_out_parameter
Add test for enumeration out parameters
2 parents 99bb5a8 + 2e69166 commit 57a2cd3

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
procedure Enum_Out is
2+
type Enum is (One, Two, Three);
3+
4+
procedure P_Out (E : out Enum) is
5+
begin
6+
E := Two;
7+
end P_Out;
8+
9+
Var_E : Enum;
10+
11+
begin
12+
P_Out (Var_E);
13+
pragma Assert (Var_E = Two);
14+
end Enum_Out;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALL XFAIL gnat2goto fails with "raised SYSTEM.ASSERTIONS.ASSERT_FAILURE : failed precondition from ireps.ads:1875"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[1] file enum_out.adb line 13 assertion: SUCCESS
2+
VERIFICATION SUCCESSFUL
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from test_support import *
2+
3+
prove()

0 commit comments

Comments
 (0)