Skip to content

Commit 852cb9d

Browse files
committed
Add tests for circular dependency
1 parent 70206b5 commit 852cb9d

4 files changed

Lines changed: 19 additions & 0 deletions

File tree

tests/functional/dim_at_label4.bas

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
REM Error: circular dependency
2+
3+
DIM a at @b
4+
DIM b at @c
5+
DIM c at @a
6+
7+

tests/functional/dim_at_label5.bas

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
REM Error: circular dependency
2+
3+
DIM x at @x
4+

tests/functional/dim_at_label6.bas

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
DIM a at @b + 1
3+
DIM b at @c
4+
DIM c at @a

tests/functional/dim_at_label7.bas

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
DIM a at @b + 1
3+
DIM b at @c
4+
DIM c at @a

0 commit comments

Comments
 (0)