Skip to content

Commit 8eeaf55

Browse files
author
Viviane Garese
committed
Merge branch 'garese/kill-358-light' into 'master'
Adapt expr func aspect test for light runtimes Closes #364 See merge request eng/das/cov/gnatcoverage!718 Closes #364
2 parents 0c0a9b2 + 7f1ec61 commit 8eeaf55

File tree

4 files changed

+24
-19
lines changed

4 files changed

+24
-19
lines changed

testsuite/tests/instr-cov/358-exprf-aspects/src/aspect.adb

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
pragma Ada_2012;
2+
3+
package Aspect is
4+
5+
function Foo return Integer is (42) -- # expr
6+
with Convention => Stdcall;
7+
8+
type Foo_Type is access
9+
function return Integer with Convention => Stdcall;
10+
11+
end Aspect;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
with Aspect; use Aspect;
2+
3+
procedure Foo is
4+
5+
Dummy : Foo_Type := Foo'Access; -- # d
6+
begin
7+
null;
8+
end;
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
with Aspect;
1+
with Foo;
22

33
-- Check that when instrumenting an expression function with aspects, these
44
-- aspects are also correctly attached to both the new intermediary function
55
-- and to the augmented expression function.
66

77
procedure Test_Aspect is
88
begin
9-
Aspect;
9+
Foo;
1010
end Test_Aspect;
1111

12-
--# aspect.adb
12+
--# aspect.ads
1313
-- /expr/ l- ## s-
14-
-- /type/ l+ ## 0
15-
-- /dummy/ l+ ## 0
14+
--# foo.adb
15+
-- /d/ l+ ## 0

0 commit comments

Comments
 (0)