diff --git a/source/compiler/tests/gh_466.meta b/source/compiler/tests/gh_466.meta new file mode 100644 index 0000000..f36c725 --- /dev/null +++ b/source/compiler/tests/gh_466.meta @@ -0,0 +1,5 @@ +{ + 'test_type': 'output_check', + 'errors': """ +""" +} diff --git a/source/compiler/tests/gh_466.pwn b/source/compiler/tests/gh_466.pwn new file mode 100644 index 0000000..0416ea9 --- /dev/null +++ b/source/compiler/tests/gh_466.pwn @@ -0,0 +1,16 @@ +forward [2][3]Func(); +Func() +{ + new a[2][3]; + return a; +} + +native [2][3]NativeFunc(); + +main() +{ + new a[2][3]; + a = Func(); + a = NativeFunc(); + return a[0][0]; +}