From d868ee7bae1c461c60cc427d26c85c4c99ca86e6 Mon Sep 17 00:00:00 2001 From: Jose Rodriguez Date: Mon, 17 Aug 2020 10:44:21 +0200 Subject: [PATCH 1/2] Update test --- tests/functional/dim_at_label7.bas | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/functional/dim_at_label7.bas b/tests/functional/dim_at_label7.bas index bfb859298..0c3e65d3c 100644 --- a/tests/functional/dim_at_label7.bas +++ b/tests/functional/dim_at_label7.bas @@ -1,4 +1,6 @@ +REM circular dependency. Not compilable DIM a at @b + 1 -DIM b at @c -DIM c at @a +DIM b at @c + 1 +DIM c at @a + 1 + From 040c6e411cb3e5cd10d12ded0fbfc0cc19bc4ccd Mon Sep 17 00:00:00 2001 From: Jose Rodriguez Date: Mon, 17 Aug 2020 11:20:49 +0200 Subject: [PATCH 2/2] Update test --- tests/functional/dim_at_label5.bas | 2 +- tests/functional/dim_at_label6.bas | 6 +++--- tests/functional/dim_at_label7.bas | 6 +++--- tests/functional/test_errmsg.txt | 11 +++++++++++ 4 files changed, 18 insertions(+), 7 deletions(-) diff --git a/tests/functional/dim_at_label5.bas b/tests/functional/dim_at_label5.bas index 0c75e71a8..44661ed97 100644 --- a/tests/functional/dim_at_label5.bas +++ b/tests/functional/dim_at_label5.bas @@ -1,4 +1,4 @@ REM Error: circular dependency -DIM x at @x +DIM x as Ubyte at @x diff --git a/tests/functional/dim_at_label6.bas b/tests/functional/dim_at_label6.bas index bfb859298..3096e5568 100644 --- a/tests/functional/dim_at_label6.bas +++ b/tests/functional/dim_at_label6.bas @@ -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 diff --git a/tests/functional/dim_at_label7.bas b/tests/functional/dim_at_label7.bas index 0c3e65d3c..632c85153 100644 --- a/tests/functional/dim_at_label7.bas +++ b/tests/functional/dim_at_label7.bas @@ -1,6 +1,6 @@ REM circular dependency. Not compilable -DIM a at @b + 1 -DIM b at @c + 1 -DIM c at @a + 1 +DIM a as Ubyte at @b + 1 +DIM b as Ubyte at @c + 1 +DIM c as Ubyte at @a + 1 diff --git a/tests/functional/test_errmsg.txt b/tests/functional/test_errmsg.txt index 07531fe77..0679bec38 100644 --- a/tests/functional/test_errmsg.txt +++ b/tests/functional/test_errmsg.txt @@ -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' +