blob: c3f4de3c2d7bd416595f3121de9667358e28cfd4 [file] [log] [blame]
Andrew Topef837fa2017-10-04 22:44:25 -07001// Copyright 2017 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Flags: --allow-natives-syntax
6
7function Module(stdlib, imports, buffer) {
8 "use asm";
9 function f() {
10 return (281474976710655 * 1048575) | 0;
11 }
12 return { f:f };
13}
14var m = Module(this);
15assertEquals(-1048576, m.f());
16assertFalse(%IsAsmWasmCode(Module));