// Copyright 2014 the V8 project authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.// Flags: --allow-natives-syntax --turbo-filter=test2functiontest(n){returnArray(n);}functiontest2(){returntest(2);}functiontest3(a){a[0]=1;}test(0);varsmi_array=[1,2];smi_array[2]=3;test3(smi_array);%OptimizeFunctionOnNextCall(test2);varbroken_array=test2();test3(broken_array);1+broken_array[0];