[llvm-commits] CVS: llvm/test/Programs/SingleSource/UnitTests/2003-05-31-CastToBool.c
Vikram Adve
vadve at cs.uiuc.edu
Thu Jul 10 14:24:04 PDT 2003
Changes in directory llvm/test/Programs/SingleSource/UnitTests:
2003-05-31-CastToBool.c updated: 1.2 -> 1.3
---
Log message:
Fix parentheses for casts to _Bool.
---
Diffs of the changes:
Index: llvm/test/Programs/SingleSource/UnitTests/2003-05-31-CastToBool.c
diff -u llvm/test/Programs/SingleSource/UnitTests/2003-05-31-CastToBool.c:1.2 llvm/test/Programs/SingleSource/UnitTests/2003-05-31-CastToBool.c:1.3
--- llvm/test/Programs/SingleSource/UnitTests/2003-05-31-CastToBool.c:1.2 Tue Jul 8 10:41:48 2003
+++ llvm/test/Programs/SingleSource/UnitTests/2003-05-31-CastToBool.c Thu Jul 10 14:23:08 2003
@@ -2,11 +2,11 @@
void testCastOps(int y) {
printf("y = %d, (y == 2 || y == 0) == %d\n",
- y, ((_Bool) y == 2) || ((_Bool) y == 0));
+ y, ((_Bool) (y == 2)) || ((_Bool) (y == 0)));
printf("y = %d, (y > 2 || y < 5) == %d\n",
- y, ((_Bool) y < 2) && ((_Bool) y > -10));
+ y, ((_Bool) (y < 2)) && ((_Bool) (y > -10)));
printf("y = %d, (y ^ 2 ^ ~y) == %d\n",
- y, ((_Bool) y ^ 2 ^ ~5));
+ y, (_Bool) (y ^ 2 ^ ~5));
}
void testBool(_Bool X) {
More information about the llvm-commits
mailing list