Add tests for #436

This commit is contained in:
Daniel_Cortez 2019-06-28 23:54:40 +07:00
parent 5122a99e44
commit 1bb4e42917
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,7 @@
{
'test_type': 'output_check',
'errors': """
gh_436_local_var_self_init.pwn(6) : error 017: undefined symbol "test"
gh_436_local_var_self_init.pwn(7) : error 017: undefined symbol "test2"; did you mean "test"?
"""
}

View File

@ -0,0 +1,9 @@
#include <console>
main()
{
new arr[2];
new test = test;
new test2 = arr[test2];
#pragma unused test, test2
}