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.
+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.
+
2020-05-09 Hans-Peter Nilsson <hp@axis.com>
* gcc.target/cris/: Adjust for removing crisv32-* and cris-linux-*.
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];
/* { 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 " } */
};