diff --git a/source/compiler/tests/gh_373.meta b/source/compiler/tests/gh_373.meta new file mode 100644 index 0000000..bfdf252 --- /dev/null +++ b/source/compiler/tests/gh_373.meta @@ -0,0 +1,5 @@ +{ + 'test_type': 'output_check', + 'errors': """ + """ +} diff --git a/source/compiler/tests/gh_373.pwn b/source/compiler/tests/gh_373.pwn new file mode 100644 index 0000000..3c54e5c --- /dev/null +++ b/source/compiler/tests/gh_373.pwn @@ -0,0 +1,11 @@ +Func(a[]) +{ + #pragma unwritten a + return a[0]; +} + +main() { + new a[2]; + Func(a); +} +