Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/functional/dim_at_label5.bas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
REM Error: circular dependency

DIM x at @x
DIM x as Ubyte at @x

6 changes: 3 additions & 3 deletions tests/functional/dim_at_label6.bas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

DIM a at @b + 1
DIM b at @c
DIM c at @a
DIM a as Ubyte at @b + 1
DIM b as Ubyte at @c
DIM c as Ubyte at @a
8 changes: 5 additions & 3 deletions tests/functional/dim_at_label7.bas
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
REM circular dependency. Not compilable

DIM a as Ubyte at @b + 1
DIM b as Ubyte at @c + 1
DIM c as Ubyte at @a + 1

DIM a at @b + 1
DIM b at @c
DIM c at @a
11 changes: 11 additions & 0 deletions tests/functional/test_errmsg.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,14 @@ pararray4.bas:8: error: Array q type does not match parameter type
>>> process_file('array_check_warn.bas')
array_check_warn.bas:3: warning: Array 'aux' subscript out of range
array_check_warn.bas:6: warning: Array 'aux1' subscript out of range
>>> process_file('dim_at_label5.bas')
dim_at_label5.bas:3: error: Circular dependency between 'x' and 'x'
>>> process_file('dim_at_label6.bas')
dim_at_label6.bas:2: error: Circular dependency between 'b' and 'a'
dim_at_label6.bas:2: error: Circular dependency between 'a' and 'c'
dim_at_label6.bas:3: error: Circular dependency between 'c' and 'b'
>>> process_file('dim_at_label7.bas')
dim_at_label7.bas:3: error: Circular dependency between 'b' and 'a'
dim_at_label7.bas:3: error: Circular dependency between 'a' and 'c'
dim_at_label7.bas:4: error: Circular dependency between 'c' and 'b'