From aaab59b48f45b26c89717f412c9ad44ccb67ed57 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Thu, 10 Aug 2017 08:54:04 +0000 Subject: [PATCH] re PR testsuite/81784 (gcc.dg/compare2.c fails starting with r250984) PR testsuite/81784 * gcc.dg/compare2.c: Update dg-bogus and dg-warning. From-SVN: r251021 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/compare2.c | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4d1e3c61444..817b6224772 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-08-10 Marek Polacek + + PR testsuite/81784 + * gcc.dg/compare2.c: Update dg-bogus and dg-warning. + 2017-08-10 Martin Liska PR c++/81355 diff --git a/gcc/testsuite/gcc.dg/compare2.c b/gcc/testsuite/gcc.dg/compare2.c index cfadaccb8af..f742e95f605 100644 --- a/gcc/testsuite/gcc.dg/compare2.c +++ b/gcc/testsuite/gcc.dg/compare2.c @@ -41,18 +41,18 @@ void f(int x, unsigned int y) y > ({tf; tf?64:(tf?128:-1);}); /* { dg-warning "different signedness" "case 16" } */ /* ?: branches are constants. */ - tf ? x : (tf?64:32); /* { dg-bogus "conditional expression" "case 17" } */ - tf ? y : (tf?64:32); /* { dg-bogus "conditional expression" "case 18" } */ + tf ? x : (tf?64:32); /* { dg-bogus "changes signedness" "case 17" } */ + tf ? y : (tf?64:32); /* { dg-bogus "changes signedness" "case 18" } */ /* ?: branches are signed constants. */ - tf ? x : (tf?64:-1); /* { dg-bogus "conditional expression" "case 19" } */ - tf ? y : (tf?64:-1); /* { dg-warning "conditional expression" "case 20" } */ + tf ? x : (tf?64:-1); /* { dg-bogus "changes signedness" "case 19" } */ + tf ? y : (tf?64:-1); /* { dg-warning "changes signedness" "case 20" } */ /* ?: branches are (recursively) constants. */ - tf ? x : (tf?64:(tf?128:256)); /* { dg-bogus "conditional expression" "case 21" } */ - tf ? y : (tf?64:(tf?128:256)); /* { dg-bogus "conditional expression" "case 22" } */ + tf ? x : (tf?64:(tf?128:256)); /* { dg-bogus "changes signedness" "case 21" } */ + tf ? y : (tf?64:(tf?128:256)); /* { dg-bogus "changes signedness" "case 22" } */ /* ?: branches are (recursively) signed constants. */ - tf ? x : (tf?64:(tf?128:-1)); /* { dg-bogus "conditional expression" "case 23" } */ - tf ? y : (tf?64:(tf?128:-1)); /* { dg-warning "conditional expression" "case 24" } */ + tf ? x : (tf?64:(tf?128:-1)); /* { dg-bogus "changes signedness" "case 23" } */ + tf ? y : (tf?64:(tf?128:-1)); /* { dg-warning "changes signedness" "case 24" } */ } -- 2.30.2