Add tests for #436
This commit is contained in:
parent
5122a99e44
commit
1bb4e42917
7
source/compiler/tests/gh_436_local_var_self_init.meta
Normal file
7
source/compiler/tests/gh_436_local_var_self_init.meta
Normal 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"?
|
||||
"""
|
||||
}
|
9
source/compiler/tests/gh_436_local_var_self_init.pwn
Normal file
9
source/compiler/tests/gh_436_local_var_self_init.pwn
Normal file
@ -0,0 +1,9 @@
|
||||
#include <console>
|
||||
|
||||
main()
|
||||
{
|
||||
new arr[2];
|
||||
new test = test;
|
||||
new test2 = arr[test2];
|
||||
#pragma unused test, test2
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user