Skip to content

Commit 5798738

Browse files
committed
Add tests
1 parent 6c22333 commit 5798738

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

source/compiler/tests/gh_685.meta

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
'test_type': 'output_check',
3+
'errors': """
4+
gh_685.pwn(1) : error 010: invalid function or declaration
5+
gh_685.pwn(2) : error 010: invalid function or declaration
6+
"""
7+
}

source/compiler/tests/gh_685.pwn

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
native Tag:[1]operator +(Tag:a, Tag:b) = 0; // error 010: invalid function or declaration
2+
forward Tag:[1]operator -(Tag:a,Tag:b); // error 010: invalid function or declaration
3+
4+
main () { }

0 commit comments

Comments
 (0)