From e39c66fbbfa5d594dbbe9d73492b66e6ade5909b Mon Sep 17 00:00:00 2001 From: imaqtkatt Date: Mon, 4 Mar 2024 10:29:57 -0300 Subject: [PATCH] Add duplicated data with defname test --- tests/golden_tests/compile_file/error_data_def_name.hvm | 4 ++++ tests/snapshots/compile_file__error_data_def_name.hvm.snap | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 tests/golden_tests/compile_file/error_data_def_name.hvm create mode 100644 tests/snapshots/compile_file__error_data_def_name.hvm.snap diff --git a/tests/golden_tests/compile_file/error_data_def_name.hvm b/tests/golden_tests/compile_file/error_data_def_name.hvm new file mode 100644 index 000000000..00d636daf --- /dev/null +++ b/tests/golden_tests/compile_file/error_data_def_name.hvm @@ -0,0 +1,4 @@ +data A = A +A = 0 + +main = A diff --git a/tests/snapshots/compile_file__error_data_def_name.hvm.snap b/tests/snapshots/compile_file__error_data_def_name.hvm.snap new file mode 100644 index 000000000..6cb6428d2 --- /dev/null +++ b/tests/snapshots/compile_file__error_data_def_name.hvm.snap @@ -0,0 +1,5 @@ +--- +source: tests/golden_tests.rs +input_file: tests/golden_tests/compile_file/error_data_def_name.hvm +--- +Duplicated top-level name 'A'.