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 ;
21with Assertions ; use Assertions;
2+ with Silent_Last_Chance ;
33
44procedure Assertions_2
55is
66 Y : Integer := 2 ;
77begin
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.
1110
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
1612end 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 11pragma Assertion_Policy (Check);
22pragma Ada_2012;
33
4- with Ada.Assertions ;
4+ with Silent_Last_Chance ;
55
66procedure Expr_Func
77is
2121begin
2222 Dummy := Foo (0 ); -- # foo_call
2323
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
2925end Expr_Func ;
Original file line number Diff line number Diff line change 1- with Assertions_2 ;
1+ with Catch_Assertions_2 ;
22
33procedure Test_Assertions_2 is
44begin
5- Assertions_2 ;
5+ Catch_Assertions_2 ;
66end Test_Assertions_2 ;
77
88-- # assertions.ads
@@ -27,4 +27,3 @@ end Test_Assertions_2;
2727-- /same_ret/ l- ## s-
2828-- # assertions_2.adb
2929-- /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 ;
22
33procedure Test_Expr_Func is
44begin
5- Expr_Func ;
5+ Catch_Expr_Func ;
66end Test_Expr_Func ;
77
88-- # expr_func.adb
@@ -15,4 +15,3 @@ end Test_Expr_Func;
1515-- /dummy_decl/ l+ ## 0
1616-- /foo_call/ l+ ## 0
1717-- /bar_call/ l+ ## 0
18- -- /catch/ l+ ## 0
Original file line number Diff line number Diff line change 1+ with Silent_Last_Chance ;
12with Pack_Type_Invariant ;
23
34with Ada.Assertions ;
Original file line number Diff line number Diff line change 11bin-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 11bin-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