blob: 00b78f94a7d6c96dfd81c3ca8f5cef3692abae3c [file] [log] [blame]
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// @assertion It is a compile-time error if the unbounded integer value of a
/// double valued integer literal cannot be represented exactly as an IEEE 754
/// double-precision value, assuming that the mantissa is extended with zeros
/// until the precision is sufficiently high to unambiguously specify a single
/// integer value.
/// @description Checks that it is not a compile-time error if the unbounded
/// integer value of a double valued integer literal with binary representation
/// of 55 bit length can be represented exactly as an IEEE 754 double-precision
/// value (the most significant bit is 1 and two low bits are 0).
/// @author ngl@unipro.ru
main() {
double d1 = 0x40000000000000;
double d2 = 0x40000000000004;
double d3 = 0x40000000000008;
double d4 = 0x4000000000000C;
}