From c9d2acb605666c0da378defb0a2f064c72e18bd7 Mon Sep 17 00:00:00 2001 From: Stanislav Gromov Date: Fri, 8 Jan 2021 18:23:28 +0700 Subject: [PATCH] Add tests --- source/compiler/tests/warning_231.meta | 7 +++++++ source/compiler/tests/warning_231.pwn | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 source/compiler/tests/warning_231.meta create mode 100644 source/compiler/tests/warning_231.pwn diff --git a/source/compiler/tests/warning_231.meta b/source/compiler/tests/warning_231.meta new file mode 100644 index 0000000..1e107c3 --- /dev/null +++ b/source/compiler/tests/warning_231.meta @@ -0,0 +1,7 @@ +{ + 'test_type': 'output_check', + 'errors': """ +warning_231.pwn(3) : warning 231: state specification on forward declaration is ignored +warning_231.pwn(6) : warning 231: state specification on forward declaration is ignored +""" +} diff --git a/source/compiler/tests/warning_231.pwn b/source/compiler/tests/warning_231.pwn new file mode 100644 index 0000000..1df19a1 --- /dev/null +++ b/source/compiler/tests/warning_231.pwn @@ -0,0 +1,9 @@ +#pragma option -;+ + +forward Func() ; // warning 231: state specification on forward declaration is ignored +public Func() {} + +public Func() ; // warning 231: state specification on forward declaration is ignored +public Func() {} + +main(){}