From 5f68c7ee327274690fea394d0bd1c0eb48bf934e Mon Sep 17 00:00:00 2001
From: bl0ckeduser <bl0ckedusersoft@gmail.com>
Date: Mon, 28 Jan 2013 19:49:54 -0500
Subject: [PATCH] Add test case for array prototype inheritance

See https://savannah.gnu.org/bugs/?38084, see also
commit df19f2f0cf0b996090faaff81827a073b600ad10
---
 testsuite/actionscript.all/array.as |   16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/testsuite/actionscript.all/array.as b/testsuite/actionscript.all/array.as
index 70c55a2..623c2ae 100644
--- a/testsuite/actionscript.all/array.as
+++ b/testsuite/actionscript.all/array.as
@@ -1783,13 +1783,23 @@ check_equals(ar.__proto__, "string");
 // ASnative(252, 12) - [Array.prototype] sortOn 
 //
 
+// Check for correct array prototype inheritance
+// (see http://savannah.gnu.org/bugs/?38084)
+
+function X() { trace('X ctor'); }
+X.prototype = new Array();
+trace("creating new object");
+o = new X();
+o.push("Array data");
+ret = o.pop();
+xcheck_equals(ret, "Array data");
 
 #if OUTPUT_VERSION < 6
- check_totals(549);
+ check_totals(550);
 #else
 # if OUTPUT_VERSION < 7
-  check_totals(633);
+  check_totals(634);
 # else
-  check_totals(643);
+  check_totals(644);
 # endif
 #endif
-- 
1.7.9.5

