Skip to content

Commit 040c6e4

Browse files
committed
Update test
1 parent d868ee7 commit 040c6e4

4 files changed

Lines changed: 18 additions & 7 deletions

File tree

tests/functional/dim_at_label5.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
REM Error: circular dependency
22

3-
DIM x at @x
3+
DIM x as Ubyte at @x
44

tests/functional/dim_at_label6.bas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

2-
DIM a at @b + 1
3-
DIM b at @c
4-
DIM c at @a
2+
DIM a as Ubyte at @b + 1
3+
DIM b as Ubyte at @c
4+
DIM c as Ubyte at @a

tests/functional/dim_at_label7.bas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
REM circular dependency. Not compilable
22

3-
DIM a at @b + 1
4-
DIM b at @c + 1
5-
DIM c at @a + 1
3+
DIM a as Ubyte at @b + 1
4+
DIM b as Ubyte at @c + 1
5+
DIM c as Ubyte at @a + 1
66

tests/functional/test_errmsg.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,14 @@ pararray4.bas:8: error: Array q type does not match parameter type
148148
>>> process_file('array_check_warn.bas')
149149
array_check_warn.bas:3: warning: Array 'aux' subscript out of range
150150
array_check_warn.bas:6: warning: Array 'aux1' subscript out of range
151+
>>> process_file('dim_at_label5.bas')
152+
dim_at_label5.bas:3: error: Circular dependency between 'x' and 'x'
153+
>>> process_file('dim_at_label6.bas')
154+
dim_at_label6.bas:2: error: Circular dependency between 'b' and 'a'
155+
dim_at_label6.bas:2: error: Circular dependency between 'a' and 'c'
156+
dim_at_label6.bas:3: error: Circular dependency between 'c' and 'b'
157+
>>> process_file('dim_at_label7.bas')
158+
dim_at_label7.bas:3: error: Circular dependency between 'b' and 'a'
159+
dim_at_label7.bas:3: error: Circular dependency between 'a' and 'c'
160+
dim_at_label7.bas:4: error: Circular dependency between 'c' and 'b'
161+

0 commit comments

Comments
 (0)