diff --git a/source/compiler/tests/gh_685.meta b/source/compiler/tests/gh_685.meta new file mode 100644 index 0000000..da0cab3 --- /dev/null +++ b/source/compiler/tests/gh_685.meta @@ -0,0 +1,7 @@ +{ + 'test_type': 'output_check', + 'errors': """ +gh_685.pwn(1) : error 010: invalid function or declaration +gh_685.pwn(2) : error 010: invalid function or declaration + """ +} diff --git a/source/compiler/tests/gh_685.pwn b/source/compiler/tests/gh_685.pwn new file mode 100644 index 0000000..ef09047 --- /dev/null +++ b/source/compiler/tests/gh_685.pwn @@ -0,0 +1,4 @@ +native Tag:[1]operator +(Tag:a, Tag:b) = 0; // error 010: invalid function or declaration +forward Tag:[1]operator -(Tag:a,Tag:b); // error 010: invalid function or declaration + +main () { }