summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/compare2.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-09-08 03:20:35 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-09-08 03:20:35 +0000
commite4d4d9ae14504f986b0ca393bd77b34cfb78acaa (patch)
tree2fe21d185b6128b532ce398c3d0354ca265c03ae /gcc/testsuite/gcc.dg/compare2.c
parent5bdbfb1d23c33b86d4611bb5c4f4cfe13d1c3aba (diff)
downloadgcc-e4d4d9ae14504f986b0ca393bd77b34cfb78acaa.tar.gz
* c-typeck.c (c_tree_expr_nonnegative_p): New function.
(build_binary_op): Call c_tree_expr_nonnegative_p rather than tree_expr_nonnegative_p. (build_conditional_expr): Likewise. * c-tree.h (c_tree_expr_nonnegative_p): Declare. * gcc.dg/compare2.c: Remove xfail from cases 10 and 12. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56927 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/compare2.c')
-rw-r--r--gcc/testsuite/gcc.dg/compare2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/compare2.c b/gcc/testsuite/gcc.dg/compare2.c
index a33e4aa2955..0625eb9c3f6 100644
--- a/gcc/testsuite/gcc.dg/compare2.c
+++ b/gcc/testsuite/gcc.dg/compare2.c
@@ -26,11 +26,11 @@ void f(int x, unsigned int y)
/* Statement expression. */
x > ({tf; 64;}); /* { dg-bogus "signed and unsigned" "case 9" } */
- y > ({tf; 64;}); /* { dg-bogus "signed and unsigned" "case 10" { xfail *-*-* } } */
+ y > ({tf; 64;}); /* { dg-bogus "signed and unsigned" "case 10" } */
/* Statement expression with recursive ?: . */
x > ({tf; tf?64:(tf?128:256);}); /* { dg-bogus "signed and unsigned" "case 11" } */
- y > ({tf; tf?64:(tf?128:256);}); /* { dg-bogus "signed and unsigned" "case 12" { xfail *-*-* } } */
+ y > ({tf; tf?64:(tf?128:256);}); /* { dg-bogus "signed and unsigned" "case 12" } */
/* Statement expression with signed ?:. */
x > ({tf; tf?64:-1;}); /* { dg-bogus "signed and unsigned" "case 13" } */