Add tests
This commit is contained in:
parent
1488c26e47
commit
5bce87049b
8
source/compiler/tests/gh_500.meta
Normal file
8
source/compiler/tests/gh_500.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
'test_type': 'output_check',
|
||||||
|
'errors': """
|
||||||
|
gh_500.pwn(13) : error 004: function "Test1" is not implemented - use "Test4"
|
||||||
|
gh_500.pwn(14) : error 004: function "Test2" is not implemented
|
||||||
|
gh_500.pwn(15) : error 004: function "Test3" is not implemented
|
||||||
|
"""
|
||||||
|
}
|
16
source/compiler/tests/gh_500.pwn
Normal file
16
source/compiler/tests/gh_500.pwn
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#pragma deprecated - use "Test4"
|
||||||
|
forward Test1();
|
||||||
|
|
||||||
|
#pragma deprecated
|
||||||
|
forward Test2();
|
||||||
|
|
||||||
|
forward Test3();
|
||||||
|
|
||||||
|
stock Test4(){}
|
||||||
|
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
Test1(); // error 004: function "Test1" is not implemented - use "Test4"
|
||||||
|
Test2(); // error 004: function "Test2" is not implemented
|
||||||
|
Test3(); // error 004: function "Test3" is not implemented
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user