dart-sdk/tests/corelib_2/int_from_environment_int64_test.dart
Emily Fortuna 134e00fd73 Treat 64 bit ints as unsigned until conversion to JS.
Change-Id: Idb9c5d4a3562f59bc75a5bb7eef4b7af8f5df992
Reviewed-on: https://dart-review.googlesource.com/57714
Commit-Queue: Emily Fortuna <efortuna@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
2018-06-06 00:28:28 +00:00

12 lines
473 B
Dart

// Copyright (c) 2013, 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.
// SharedOptions=-Df=-9223372036854775808 -Dg=9223372036854775807
import "package:expect/expect.dart";
main() {
Expect.equals(-9223372036854775808, const int.fromEnvironment('f'));
Expect.equals(9223372036854775807, const int.fromEnvironment('g'));
}