Skip to content

Commit 243f19a

Browse files
author
Sonny Martin
committed
Add (failing) test for unsupported N_Block_Statement node
1 parent 8cf25fb commit 243f19a

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
procedure Statement_Block is
2+
Var1 : Integer;
3+
Var3 : Integer;
4+
begin
5+
Var1 := 1;
6+
declare
7+
Var2 : Integer;
8+
begin
9+
Var2 := 2;
10+
Var3 := Var2;
11+
end;
12+
Var3 := Var1;
13+
end Statement_Block;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALL XFAIL gnat2goto fails with "Warning: block statements unhandled"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from test_support import *
2+
3+
prove()

0 commit comments

Comments
 (0)