Add tests
This commit is contained in:
parent
5fe4480b0e
commit
c9d2acb605
7
source/compiler/tests/warning_231.meta
Normal file
7
source/compiler/tests/warning_231.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
'test_type': 'output_check',
|
||||||
|
'errors': """
|
||||||
|
warning_231.pwn(3) : warning 231: state specification on forward declaration is ignored
|
||||||
|
warning_231.pwn(6) : warning 231: state specification on forward declaration is ignored
|
||||||
|
"""
|
||||||
|
}
|
9
source/compiler/tests/warning_231.pwn
Normal file
9
source/compiler/tests/warning_231.pwn
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#pragma option -;+
|
||||||
|
|
||||||
|
forward Func() <auto1:st1>; // warning 231: state specification on forward declaration is ignored
|
||||||
|
public Func() <auto1:st1> {}
|
||||||
|
|
||||||
|
public Func() <auto1:st2>; // warning 231: state specification on forward declaration is ignored
|
||||||
|
public Func() <auto1:st2> {}
|
||||||
|
|
||||||
|
main(){}
|
Loading…
x
Reference in New Issue
Block a user