From 1f28c3c733ea3ae4234bff91e1c55e61b1ee3e96 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 31 Jul 2019 01:25:05 +0200 Subject: Starting on asm, implementing extern function call so progress is visible --- tests/errors/arithmetic_incompatible_types.amal | 5 +++++ tests/errors/declaration_no_type.amal | 1 + tests/errors/declaration_no_type_extern.amal | 1 + tests/errors/empty_body_regular_func.amal | 1 + tests/errors/non_arithmetic_type_arithmetic.amal | 4 ++++ 5 files changed, 12 insertions(+) create mode 100644 tests/errors/arithmetic_incompatible_types.amal create mode 100644 tests/errors/declaration_no_type.amal create mode 100644 tests/errors/declaration_no_type_extern.amal create mode 100644 tests/errors/empty_body_regular_func.amal create mode 100644 tests/errors/non_arithmetic_type_arithmetic.amal (limited to 'tests/errors') diff --git a/tests/errors/arithmetic_incompatible_types.amal b/tests/errors/arithmetic_incompatible_types.amal new file mode 100644 index 0000000..367e5ed --- /dev/null +++ b/tests/errors/arithmetic_incompatible_types.amal @@ -0,0 +1,5 @@ +const main = fn { + const value = 23; + const value2 = "sadsa"; + const value3 = value + value2; +} \ No newline at end of file diff --git a/tests/errors/declaration_no_type.amal b/tests/errors/declaration_no_type.amal new file mode 100644 index 0000000..fc7d4f3 --- /dev/null +++ b/tests/errors/declaration_no_type.amal @@ -0,0 +1 @@ +const a; \ No newline at end of file diff --git a/tests/errors/declaration_no_type_extern.amal b/tests/errors/declaration_no_type_extern.amal new file mode 100644 index 0000000..1d5c677 --- /dev/null +++ b/tests/errors/declaration_no_type_extern.amal @@ -0,0 +1 @@ +extern const a; \ No newline at end of file diff --git a/tests/errors/empty_body_regular_func.amal b/tests/errors/empty_body_regular_func.amal new file mode 100644 index 0000000..afc3363 --- /dev/null +++ b/tests/errors/empty_body_regular_func.amal @@ -0,0 +1 @@ +const func: fn; \ No newline at end of file diff --git a/tests/errors/non_arithmetic_type_arithmetic.amal b/tests/errors/non_arithmetic_type_arithmetic.amal new file mode 100644 index 0000000..6635d06 --- /dev/null +++ b/tests/errors/non_arithmetic_type_arithmetic.amal @@ -0,0 +1,4 @@ +const main = fn { + const value = "hello, world"; + const value2 = value + value; +} \ No newline at end of file -- cgit v1.2.3