blob: 38c0ce7fd9a56e9d5c0ce69c414adb0c6e2ff080 [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 flagY
* Extracted [y] value. Returns false for 0, true for any other value.
* @description Checks that false is returned if [y] is 0 and
* true otherwise.
* @author msyabro
*/
import "dart:typed_data";
import "../../../Utils/expect.dart";
check(y) {
var obj = new Int32x4(0, y, 0, 0);
if(y == 0) {
Expect.isFalse(obj.flagY);
} else {
Expect.isTrue(obj.flagY);
}
}
main() {
check(0);
check(1);
check(-1);
check(2147483648);
}