diff --git a/source/compiler/tests/gh_436_local_var_self_init.meta b/source/compiler/tests/gh_436_local_var_self_init.meta new file mode 100644 index 0000000..ec50d22 --- /dev/null +++ b/source/compiler/tests/gh_436_local_var_self_init.meta @@ -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"? +""" +} diff --git a/source/compiler/tests/gh_436_local_var_self_init.pwn b/source/compiler/tests/gh_436_local_var_self_init.pwn new file mode 100644 index 0000000..d796d46 --- /dev/null +++ b/source/compiler/tests/gh_436_local_var_self_init.pwn @@ -0,0 +1,9 @@ +#include + +main() +{ + new arr[2]; + new test = test; + new test2 = arr[test2]; + #pragma unused test, test2 +}