Files
sdk/tests/language/vm/regress_45674_test.dart
T
Ryan Macnak b2a1e758d0 [test] Add regression test for issue 45674.
Fixed by 55645786bc.

TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/45674
Change-Id: Ibe3872710b98e69c1ac9dd216c424e8b42536331
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/195187
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2021-04-14 18:12:35 +00:00

36 lines
839 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.
import "package:expect/expect.dart";
// Reduced from
// The Dart Project Fuzz Tester (1.89).
// Program generated as:
// dart dartfuzz.dart --seed 3586617624 --no-fp --no-ffi --flat
import 'dart:typed_data';
Int32x4List var14 = Int32x4List(5);
Map<bool, int> var58 = {false: -5, true: -16, false: 22};
bool foo3_Extension1() {
try {
print(var14[((Int32x4.wyxw as int) >> var58[true]!)]);
return true;
} catch (e) {
return false;
}
}
main() {
var r;
try {
r = foo3_Extension1();
} catch (e) {
Expect.fail("Exception should have been caught sooner");
}
Expect.equals(false, r);
}