Add tests

This commit is contained in:
Stanislav Gromov 2021-01-08 18:23:28 +07:00
parent 5fe4480b0e
commit c9d2acb605
2 changed files with 16 additions and 0 deletions

View 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
"""
}

View 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(){}