blob: 294f0ea52eaa6bdd28f7c59af1a0f6c1beda6d70 [file] [log] [blame]
// Copyright (c) 2020, 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=--no-use-vfp
import 'dart:typed_data';
import 'package:expect/expect.dart';
final Float32List l = int.parse('1') == 1
? Float32List(2)
: Float32List.view(Uint32List(2).buffer);
main() {
l[int.parse('1') == 1 ? 0 : 1] = 1.2;
Expect.approxEquals(l[0], 1.2);
}