Skip to content

Commit ce32931

Browse files
committed
Remove XFAIL test.opt files for passing tests #108
* tests/deferred_constant_use/test.opt * tests/deferred_constant_use/test.out * tests/enum_symbols_range_constraint_assignment/test.opt * tests/enum_symbols_range_constraint_assignment/test.out * tests/packages/test.opt * tests/packages/test.out * tests/size_integer_and_objects/test.opt * tests/size_integer_and_objects/test.out Remove test.opt file and add the test.out output for each passing test
1 parent d57ab6e commit ce32931

File tree

8 files changed

+75
-25
lines changed

8 files changed

+75
-25
lines changed

testsuite/gnat2goto/tests/deferred_constant_use/test.opt

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
[assertion.1] Range Check: SUCCESS
2-
VERIFICATION SUCCESSFUL
3-
1+
[inc.assertion.1] line 4 Ada Check assertion: SUCCESS
42
VERIFICATION SUCCESSFUL

testsuite/gnat2goto/tests/enum_symbols_range_constraint_assignment/test.opt

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
[range_constraint.assertion.1] line 15 assertion Value = CALIBRATION_FAIL: SUCCESS
12
VERIFICATION SUCCESSFUL

testsuite/gnat2goto/tests/packages/test.opt

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[packages.assertion.1] line 6 assertion Test.Double (1) = 2: SUCCESS
2+
[double.assertion.1] line 6 Ada Check assertion: SUCCESS
3+
VERIFICATION SUCCESSFUL
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ALL XFAIL gnat2goto fails when Size representation clause applied to standard types and their derivations or to objects.
1+
ALL XFAIL gnat2goto fails when Size representation clause applied to standard types and their derivations or to objects.
Lines changed: 69 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,70 @@
1-
+===========================GNAT BUG DETECTED==============================+
2-
| GNU Ada (ada2goto) Assert_Failure tree_walk.adb:4673 |
3-
| Error detected at check_size.adb:1:11 |
4-
| Please submit a bug report; see https://gcc.gnu.org/bugs/ . |
5-
| Use a subject line meaningful to you and us to track the bug. |
6-
| Include the entire contents of this bug box in the report. |
7-
| Include the exact command that you entered. |
8-
| Also include sources listed below. |
9-
+==========================================================================+
1+
Standard_Output from gnat2goto check_size:
2+
----------At: Process_Declaration----------
3+
----------size clause not applied by the front-end----------
4+
N_Attribute_Definition_Clause "size" (Node_Id=2310) (source,analyzed)
5+
Sloc = 8372 check_size.adb:7:4
6+
Chars = "size" (Name_Id=300000899)
7+
Name = N_Identifier "t_1" (Node_Id=2307)
8+
Expression = N_Integer_Literal (Node_Id=2311)
9+
Entity = N_Defining_Identifier "t_1" (Entity_Id=2291)
10+
----------At: Make_Default_Initialiser----------
11+
----------Unknown Ekind----------
12+
N_Defining_Identifier "Tvar_size_1S" (Entity_Id=2520)
13+
Parent = N_Subtype_Declaration (Node_Id=2528)
14+
Sloc = 8572 check_size.adb:18:4
15+
Chars = "Tvar_size_1S" (Name_Id=300001465)
16+
Next_Entity = N_Defining_Identifier "var_size_2" (Entity_Id=2389)
17+
Scope = N_Defining_Identifier "check_size" (Entity_Id=2245)
18+
Ekind = E_Signed_Integer_Subtype
19+
Etype = N_Defining_Identifier "integer" (Entity_Id=1009s)
20+
Esize = 32 (Uint = 600032800)
21+
RM_Size = 6 (Uint = 600032774)
22+
Alignment = 4 (Uint = 600032772)
23+
Scalar_Range = N_Range (Node_Id=2380)
24+
Has_Qualified_Name = True
25+
Is_Constrained = True
26+
Is_Frozen = True
27+
Is_Unsigned_Type = True
28+
Needs_Debug_Info = True
29+
Size_Known_At_Compile_Time = True
30+
----------At: Process_Declaration----------
31+
----------size clause not applied by the front-end----------
32+
N_Attribute_Definition_Clause "size" (Node_Id=2387) (source,analyzed)
33+
Sloc = 8611 check_size.adb:19:4
34+
Chars = "size" (Name_Id=300000899)
35+
Name = N_Identifier "var_size_1" (Node_Id=2384)
36+
Expression = N_Integer_Literal (Node_Id=2388)
37+
Entity = N_Defining_Identifier "var_size_1" (Entity_Id=2369)
38+
----------At: Make_Default_Initialiser----------
39+
----------Unknown Ekind----------
40+
N_Defining_Identifier "Tvar_size_2S" (Entity_Id=2531)
41+
Parent = N_Subtype_Declaration (Node_Id=2539)
42+
Sloc = 8647 check_size.adb:21:4
43+
Chars = "Tvar_size_2S" (Name_Id=300001466)
44+
Next_Entity = N_Defining_Identifier "var_u8" (Entity_Id=2413)
45+
Scope = N_Defining_Identifier "check_size" (Entity_Id=2245)
46+
Ekind = E_Signed_Integer_Subtype
47+
Etype = N_Defining_Identifier "integer" (Entity_Id=1009s)
48+
Esize = 32 (Uint = 600032800)
49+
RM_Size = 17 (Uint = 600032785)
50+
Alignment = 4 (Uint = 600032772)
51+
Scalar_Range = N_Range (Node_Id=2400)
52+
Has_Qualified_Name = True
53+
Is_Constrained = True
54+
Is_Frozen = True
55+
Is_Unsigned_Type = True
56+
Needs_Debug_Info = True
57+
Size_Known_At_Compile_Time = True
58+
----------At: Process_Declaration----------
59+
----------size clause not applied by the front-end----------
60+
N_Attribute_Definition_Clause "size" (Node_Id=2426) (source,analyzed)
61+
Sloc = 8753 check_size.adb:25:4
62+
Chars = "size" (Name_Id=300000899)
63+
Name = N_Identifier "var_u8" (Node_Id=2423)
64+
Expression = N_Integer_Literal (Node_Id=2427)
65+
Entity = N_Defining_Identifier "var_u8" (Entity_Id=2413)
1066

11-
Please include these source files with error report
12-
Note that list may not be accurate in some cases,
13-
so please double check that the problem can still
14-
be reproduced with the set of files listed.
15-
Consider also -gnatd.n switch (see debug.adb).
16-
17-
check_size.adb
18-
19-
compilation abandoned
67+
[check_size.assertion.1] line 30 assertion Integer (Var_T_1) + Integer (Var_T_2) = 70: SUCCESS
68+
[check_size.assertion.2] line 34 assertion Var_Size_1 + Var_Size_2 = 30: SUCCESS
69+
[check_size.assertion.3] line 37 assertion Var_U8 + 1 = 0: SUCCESS
70+
VERIFICATION SUCCESSFUL

0 commit comments

Comments
 (0)