Add tests

This commit is contained in:
Stanislav Gromov 2021-09-30 23:27:56 +07:00 committed by Y_Less
parent e678be8b78
commit 940335d1ce
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,7 @@
{
'test_type': 'output_check',
'errors': """
gh_668.pwn(1) : error 009: invalid array size (negative, zero or out of bounds)
gh_668.pwn(5) : error 009: invalid array size (negative, zero or out of bounds)
"""
}

View File

@ -0,0 +1,7 @@
new global_array[0] = { 0 }; // error 009
main()
{
new local_array[0] = { 0 }; // error 009
return global_array[0] + local_array[0];
}