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 +}