mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
f60d2f6df4
R=srdjan@google.com Review URL: https://codereview.chromium.org//21876005 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25733 260f80e4-7a28-3924-810f-c04153c831b5
19 lines
515 B
Dart
19 lines
515 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.
|
|
|
|
// VMOptions=--throw_on_javascript_int_overflow
|
|
|
|
|
|
import "package:expect/expect.dart";
|
|
|
|
int literals() {
|
|
var okay_literal = 0x20000000000000;
|
|
var too_big_literal = 0x20000000000001; /// 01: compile-time error
|
|
return okay_literal;
|
|
}
|
|
|
|
main() {
|
|
Expect.equals(0x20000000000000, literals());
|
|
}
|