diff mbox series

[committed] testsuite: Fix up two testcases [PR95008]

Message ID 20200509183047.GZ8462@tucnak
State New
Headers show
Series [committed] testsuite: Fix up two testcases [PR95008] | expand

Commit Message

Jakub Jelinek May 9, 2020, 6:30 p.m. UTC
Hi!

two-types-6.c never emitted the warning, even in 4.5/4.6, and pr93382.c
doesn't have properly escaped parens, so doesn't check whether they are
literally present in the message.

2020-05-09  Jakub Jelinek  <jakub@redhat.com>

	PR testsuite/95008
	* gcc.dg/two-types-6.c: Remove dg-warning directive that never
	triggered.
	* gcc.dg/analyzer/pr93382.c: Properly escape ()s in the diagnostic
	message.



	Jakub
diff mbox series

Patch

--- gcc/testsuite/gcc.dg/two-types-6.c.jj	2020-05-07 21:07:40.518054283 +0200
+++ gcc/testsuite/gcc.dg/two-types-6.c	2020-05-09 20:23:54.490375048 +0200
@@ -2,6 +2,6 @@ 
 /* { dg-options "-std=gnu89" } // suppress default -pedantic-errors */
 
 struct s {
-  struct f {} /* { dg-warning "does not declare anything" } */
+  struct f {}
   struct g {} x; /* { dg-error "expected ';', identifier or " } */
 };
--- gcc/testsuite/gcc.dg/analyzer/pr93382.c.jj	2020-05-07 21:07:40.393056167 +0200
+++ gcc/testsuite/gcc.dg/analyzer/pr93382.c	2020-05-09 20:18:44.934954103 +0200
@@ -14,7 +14,7 @@  ql (void)
   int n1[1];
 
   fread (n1, sizeof (n1[0]), 1, fp); /* { dg-message "'n1' gets an unchecked value here" } */
-  idx = n1[0]; /* { dg-message "'idx' has an unchecked value here (from 'n1')" } */
+  idx = n1[0]; /* { dg-message "'idx' has an unchecked value here \\\(from 'n1'\\\)" } */
 }
 
 int arr[10];