]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR testsuite/81784
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Aug 2017 08:54:04 +0000 (08:54 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Aug 2017 08:54:04 +0000 (08:54 +0000)
* gcc.dg/compare2.c: Update dg-bogus and dg-warning.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@251021 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/compare2.c

index 4d1e3c61444bf8b4581d2002053f0e2c6fc6029d..817b62247725365957357d0834152209ed8c6945 100644 (file)
@@ -1,3 +1,8 @@
+2017-08-10  Marek Polacek  <polacek@redhat.com>
+
+       PR testsuite/81784
+       * gcc.dg/compare2.c: Update dg-bogus and dg-warning.
+
 2017-08-10  Martin Liska  <mliska@suse.cz>
 
        PR c++/81355
index cfadaccb8af3fbf96ba71a253c027130e7edaeea..f742e95f6056b411a76a82902587f6c91b1fbd8c 100644 (file)
@@ -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" } */
 }