blob: 44b7ead1824f265bf336c896cf00b1c7c8c498b6 [file] [log] [blame]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
function FAILED()
{
WScript.Echo("FAILED");
throw (-1);
}
var e = -2147483648;
var l;
function test0(){
l =((- e) << 1 );
var m = (- e);
return m;
};
for (var i = 0; i < 1000; i++)
{
if (test0() != 2147483648)
{
FAILED();
}
}
WScript.Echo("Passed");