diff options
author | Ansgar Esztermann <ansgar@thphy.uni-duesseldorf.de> | 2002-09-07 20:20:35 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2002-09-07 20:20:35 -0700 |
commit | 54c93c301960dfbc469ee3501ba4872adbfdaf1f (patch) | |
tree | 2fe21d185b6128b532ce398c3d0354ca265c03ae /gcc/testsuite/gcc.dg/compare2.c | |
parent | 3aa4cad77f095ed61e5e7b803f54c0047bcee380 (diff) | |
download | gcc-54c93c301960dfbc469ee3501ba4872adbfdaf1f.zip gcc-54c93c301960dfbc469ee3501ba4872adbfdaf1f.tar.gz gcc-54c93c301960dfbc469ee3501ba4872adbfdaf1f.tar.bz2 |
c-typeck.c (c_tree_expr_nonnegative_p): New function.
* 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.
From-SVN: r56927
Diffstat (limited to 'gcc/testsuite/gcc.dg/compare2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/compare2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/compare2.c b/gcc/testsuite/gcc.dg/compare2.c index a33e4aa..0625eb9 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" } */ |