blob: 6dc2c2d2b29cd51931654948ba22df0dd956c751 [file] [log] [blame]
/*
* 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.
*/
/**
* @assertion final bool flagX
* Extracted [x] value. Returns false for 0, true for any other value.
* @description Checks that false is returned if [x] was set to false
* and true otherwise.
* @author msyabro
*/
import "dart:typed_data";
import "../../../Utils/expect.dart";
checkBool(x) {
var obj = new Int32x4.bool(x, false, false, false);
Expect.equals(x, obj.flagX);
}
main() {
checkBool(false);
checkBool(true);
}