From 5bce87049b4a12ae8dd2efcec534a56e4f538e81 Mon Sep 17 00:00:00 2001 From: Stanislav Gromov Date: Sat, 29 Aug 2020 20:57:51 +0800 Subject: [PATCH] Add tests --- source/compiler/tests/gh_500.meta | 8 ++++++++ source/compiler/tests/gh_500.pwn | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 source/compiler/tests/gh_500.meta create mode 100644 source/compiler/tests/gh_500.pwn diff --git a/source/compiler/tests/gh_500.meta b/source/compiler/tests/gh_500.meta new file mode 100644 index 0000000..0ebab4f --- /dev/null +++ b/source/compiler/tests/gh_500.meta @@ -0,0 +1,8 @@ +{ + 'test_type': 'output_check', + 'errors': """ +gh_500.pwn(13) : error 004: function "Test1" is not implemented - use "Test4" +gh_500.pwn(14) : error 004: function "Test2" is not implemented +gh_500.pwn(15) : error 004: function "Test3" is not implemented +""" +} diff --git a/source/compiler/tests/gh_500.pwn b/source/compiler/tests/gh_500.pwn new file mode 100644 index 0000000..f3d0a87 --- /dev/null +++ b/source/compiler/tests/gh_500.pwn @@ -0,0 +1,16 @@ +#pragma deprecated - use "Test4" +forward Test1(); + +#pragma deprecated +forward Test2(); + +forward Test3(); + +stock Test4(){} + +main() +{ + Test1(); // error 004: function "Test1" is not implemented - use "Test4" + Test2(); // error 004: function "Test2" is not implemented + Test3(); // error 004: function "Test3" is not implemented +}