From 6fd5198d4e7c8578c7ea3c049ab04e3947902372 Mon Sep 17 00:00:00 2001 From: Zeex Date: Sat, 29 Jun 2019 20:39:42 +0600 Subject: [PATCH] Add a test for #426 --- source/compiler/tests/ignore_unknown_directives_gh_426.meta | 3 +++ source/compiler/tests/ignore_unknown_directives_gh_426.pwn | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 source/compiler/tests/ignore_unknown_directives_gh_426.meta create mode 100644 source/compiler/tests/ignore_unknown_directives_gh_426.pwn diff --git a/source/compiler/tests/ignore_unknown_directives_gh_426.meta b/source/compiler/tests/ignore_unknown_directives_gh_426.meta new file mode 100644 index 0000000..9e24a77 --- /dev/null +++ b/source/compiler/tests/ignore_unknown_directives_gh_426.meta @@ -0,0 +1,3 @@ +{ + 'test_type': 'output_check' +} diff --git a/source/compiler/tests/ignore_unknown_directives_gh_426.pwn b/source/compiler/tests/ignore_unknown_directives_gh_426.pwn new file mode 100644 index 0000000..5607c2c --- /dev/null +++ b/source/compiler/tests/ignore_unknown_directives_gh_426.pwn @@ -0,0 +1,5 @@ +#if 0 + #unknown_test This is a test +#endif + +main() {}