Add tests
This commit is contained in:
parent
e678be8b78
commit
940335d1ce
7
source/compiler/tests/gh_668.meta
Normal file
7
source/compiler/tests/gh_668.meta
Normal 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)
|
||||
"""
|
||||
}
|
7
source/compiler/tests/gh_668.pwn
Normal file
7
source/compiler/tests/gh_668.pwn
Normal 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];
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user