Skip to content

Commit 309fca1

Browse files
committed
Add tests
1 parent 935405a commit 309fca1

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

source/compiler/tests/gh_525.meta

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
'test_type': 'output_check',
3+
'errors': """
4+
gh_525.pwn(1) : error 001: expected token: "=", but found ";"
5+
"""
6+
}

source/compiler/tests/gh_525.pwn

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
native Tag:operator+(Tag:a, Tag:b); // error 001: expected token: "=", but found ";"
2+
3+
// Make sure that valid native operator and function declarations aren't affected
4+
native Tag2:operator+(Tag2:a, Tag2:b) = NativeFunc;
5+
native Tag2:NativeFunc(Tag2:a, Tag2:b);
6+
native NativeFunc2(a,b) = NativeFunc;
7+
8+
main(){}

0 commit comments

Comments
 (0)