File tree Expand file tree Collapse file tree 9 files changed +35
-20
lines changed
instr-cov/O212-062-unsupported-pragmas Expand file tree Collapse file tree 9 files changed +35
-20
lines changed Original file line number Diff line number Diff line change 1
- with Ada.Assertions ;
2
1
with Assertions ; use Assertions;
2
+ with Silent_Last_Chance ;
3
3
4
4
procedure Assertions_2
5
5
is
6
6
Y : Integer := 2 ;
7
7
begin
8
- begin
9
- -- Call to Foo with a parameter that does not satisfy the
10
- -- precondition.
8
+ -- Call to Foo with a parameter that does not satisfy the
9
+ -- precondition.
11
10
12
- Y := Foo (-2 ); -- # foo_2
13
- exception
14
- when Ada.Assertions.Assertion_Error => null ; -- # catch_2
15
- end ;
11
+ Y := Foo (-2 ); -- # foo_2
16
12
end Assertions_2 ;
Original file line number Diff line number Diff line change
1
+ with Ada.Assertions ;
2
+ with Assertions_2 ;
3
+
4
+ procedure Catch_Assertions_2 is
5
+ begin
6
+ begin
7
+ Assertions_2;
8
+ exception
9
+ when Ada.Assertions.Assertion_Error => null ;
10
+ end ;
11
+ end Catch_Assertions_2 ;
Original file line number Diff line number Diff line change
1
+ with Ada.Assertions ;
2
+ with Expr_Func ;
3
+
4
+ procedure Catch_Expr_Func is
5
+ begin
6
+ begin
7
+ Expr_Func;
8
+ exception
9
+ when Ada.Assertions.Assertion_Error => null ;
10
+ end ;
11
+ end Catch_Expr_Func ;
Original file line number Diff line number Diff line change 1
1
pragma Assertion_Policy (Check);
2
2
pragma Ada_2012;
3
3
4
- with Ada.Assertions ;
4
+ with Silent_Last_Chance ;
5
5
6
6
procedure Expr_Func
7
7
is
21
21
begin
22
22
Dummy := Foo (0 ); -- # foo_call
23
23
24
- begin
25
- Dummy := Bar (42 ); -- # bar_call
26
- exception
27
- when Ada.Assertions.Assertion_Error => null ; -- # catch
28
- end ;
24
+ Dummy := Bar (42 ); -- # bar_call
29
25
end Expr_Func ;
Original file line number Diff line number Diff line change 1
- with Assertions_2 ;
1
+ with Catch_Assertions_2 ;
2
2
3
3
procedure Test_Assertions_2 is
4
4
begin
5
- Assertions_2 ;
5
+ Catch_Assertions_2 ;
6
6
end Test_Assertions_2 ;
7
7
8
8
-- # assertions.ads
@@ -27,4 +27,3 @@ end Test_Assertions_2;
27
27
-- /same_ret/ l- ## s-
28
28
-- # assertions_2.adb
29
29
-- /foo_2/ l+ ## c!
30
- -- /catch_2/ l+ ## 0
Original file line number Diff line number Diff line change 1
- with Expr_Func ;
1
+ with Catch_Expr_Func ;
2
2
3
3
procedure Test_Expr_Func is
4
4
begin
5
- Expr_Func ;
5
+ Catch_Expr_Func ;
6
6
end Test_Expr_Func ;
7
7
8
8
-- # expr_func.adb
@@ -15,4 +15,3 @@ end Test_Expr_Func;
15
15
-- /dummy_decl/ l+ ## 0
16
16
-- /foo_call/ l+ ## 0
17
17
-- /bar_call/ l+ ## 0
18
- -- /catch/ l+ ## 0
Original file line number Diff line number Diff line change
1
+ with Silent_Last_Chance ;
1
2
with Pack_Type_Invariant ;
2
3
3
4
with Ada.Assertions ;
Original file line number Diff line number Diff line change 1
1
bin-traces XFAIL Assertion coverage not yet supported for binary traces
2
+ 5.04a1|7.1.2 DEAD Test contains expression functions and Ada_2012 features
Original file line number Diff line number Diff line change 1
1
bin-traces XFAIL Assertion coverage not yet supported for binary traces
2
+ 5.04a1|7.1.2 DEAD Test contains expression function and Ada_2012 features
You can’t perform that action at this time.
0 commit comments