3ec6a72b93
Bug: 45335 Change-Id: I4fc2f970884439d9e4f0957dd4f756c13511306a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/196560 Reviewed-by: Sigmund Cherem <sigmund@google.com> Commit-Queue: Stephen Adams <sra@google.com>
41 lines
796 B
Dart
41 lines
796 B
Dart
// Copyright (c) 2021, 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.
|
|
|
|
//@dart=2.14
|
|
|
|
/*member: main:[null]*/
|
|
main() {
|
|
g1 = -1;
|
|
g1 = 2;
|
|
test1();
|
|
test2();
|
|
test3();
|
|
test4();
|
|
}
|
|
|
|
/*member: g1:[subclass=JSInt]*/
|
|
int g1 = 0;
|
|
|
|
/*member: test1:[exact=JSUInt31]*/
|
|
test1() {
|
|
int a = 1234;
|
|
int b = 2;
|
|
return a /*invoke: [exact=JSUInt31]*/ >>> b;
|
|
}
|
|
|
|
/*member: test2:[subclass=JSUInt32]*/
|
|
test2() {
|
|
return g1 /*invoke: [subclass=JSInt]*/ >>> g1;
|
|
}
|
|
|
|
/*member: test3:[subclass=JSUInt32]*/
|
|
test3() {
|
|
return g1 /*invoke: [subclass=JSInt]*/ >>> 1;
|
|
}
|
|
|
|
/*member: test4:[exact=JSUInt31]*/
|
|
test4() {
|
|
return 10 /*invoke: [exact=JSUInt31]*/ >>> g1;
|
|
}
|