Skip to content

Commit ba80f7f

Browse files
committed
containers/bnpe-suffix: new testcase
For GitHub issue #3 Change-Id: I3478d1fc0f9ce9a1b3b93330210c07c8723c819c no-tn-check
1 parent a0e87da commit ba80f7f

File tree

6 files changed

+39
-0
lines changed

6 files changed

+39
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
with Ada.Containers.Doubly_Linked_Lists;
2+
3+
package body Foo.Bar is
4+
package My_Lists is
5+
new Ada.Containers.Doubly_Linked_Lists (Integer);
6+
7+
L : My_Lists.List;
8+
9+
procedure Dummy is begin
10+
L.Append (1);
11+
L.Append (2);
12+
L.Append (3); -- BREAK
13+
end;
14+
end Foo.Bar;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package Foo.Bar is
2+
procedure Dummy;
3+
end;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package Foo is
2+
end Foo;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
with Ada.Containers.Doubly_Linked_Lists;
2+
with Foo.Bar;
3+
4+
procedure Lister is
5+
package Main_Lists is
6+
new Ada.Containers.Doubly_Linked_Lists (Integer);
7+
8+
ML : Main_Lists.List;
9+
begin
10+
Foo.Bar.Dummy;
11+
end;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from support.build import gnatmake
2+
from support.gdb import GDBSession
3+
4+
5+
gnatmake('lister')
6+
gdb = GDBSession('lister')
7+
gdb.run_to(gdb.find_loc('foo-bar.adb', 'BREAK'))
8+
gdb.print_expr('l', 'foo.bar.my_lists.list of length 2 = {1, 2}')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
driver: python

0 commit comments

Comments
 (0)