diff --git a/source/compiler/tests/gh_258.meta b/source/compiler/tests/gh_258.meta new file mode 100644 index 0000000..9bb01eb --- /dev/null +++ b/source/compiler/tests/gh_258.meta @@ -0,0 +1,6 @@ +{ + 'test_type': 'output_check', + 'errors': """ + gh_258.pwn(11) : warning 203: symbol is never used: "operator~(Tag:)" + """ +} diff --git a/source/compiler/tests/gh_258.pwn b/source/compiler/tests/gh_258.pwn new file mode 100644 index 0000000..a0a2174 --- /dev/null +++ b/source/compiler/tests/gh_258.pwn @@ -0,0 +1,9 @@ +operator~(Tag:var[], size) { +} + +main() { + new Tag:a; + #pragma unused a + #pragma nodestruct a +} +