PR c/24577
PR c/43192
* gcc.dg/pr8927-1.c: Match new note.
* gcc.dg/990506-0.c: Likewise.
* gcc.dg/gomp/flush-2.c: Likewise.
* gcc.dg/gomp/atomic-5.c: Likewise.
* gcc.dg/gomp/pr34607.c: Likewise.
* gcc.dg/pr35746.c: Likewise.
* gcc.dg/cpp/pragma-1.c: Likewise.
* gcc.dg/cpp/pragma-2.c: Likewise.
* gcc.dg/pr41842.c: Likewise.
* gcc.dg/noncompile/
20040629-1.c: Likewise.
* objc.dg/private-1.m: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157111
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-02-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
+
+ PR c/24577
+ PR c/43192
+ * gcc.dg/pr8927-1.c: Match new note.
+ * gcc.dg/990506-0.c: Likewise.
+ * gcc.dg/gomp/flush-2.c: Likewise.
+ * gcc.dg/gomp/atomic-5.c: Likewise.
+ * gcc.dg/gomp/pr34607.c: Likewise.
+ * gcc.dg/pr35746.c: Likewise.
+ * gcc.dg/cpp/pragma-1.c: Likewise.
+ * gcc.dg/cpp/pragma-2.c: Likewise.
+ * gcc.dg/pr41842.c: Likewise.
+ * gcc.dg/noncompile/20040629-1.c: Likewise.
+ * objc.dg/private-1.m: Likewise.
+
2010-02-27 Tobias Burnus <burnus@net-b.de>
PR fortran/43185
{
foo (i);
/* { dg-error "undeclared" "undeclared-variable message" { target *-*-* } { 6 } } */
- /* { dg-error "function it appears in" "reminder message" { target *-*-* } { 6 } } */
+ /* { dg-message "function it appears in" "reminder message" { target *-*-* } { 6 } } */
}
{
error;
/* { dg-error "undeclared" "undeclared-variable message" { target *-*-* } { 9 } } */
- /* { dg-error "function it appears in" "reminder message" { target *-*-* } { 9 } } */
+ /* { dg-message "function it appears in" "reminder message" { target *-*-* } { 9 } } */
}
}
{}
error;
/* { dg-error "undeclared" "undeclared-variable message" { target *-*-* } { 13 } } */
- /* { dg-error "function it appears in" "reminder message" { target *-*-* } { 13 } } */
+ /* { dg-message "function it appears in" "reminder message" { target *-*-* } { 13 } } */
}
;
/* Check that we didn't get stuck on the pragma eol marker. */
undef; /* { dg-error "" } */
+ /* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 37 } */
}
/* { dg-do compile } */
-
+/* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 0 } */
void f1(void)
{
#pragma omp flush a /* { dg-error "expected" } */
/* PR c++/34607 */
/* { dg-do compile } */
/* { dg-options "-fopenmp -std=gnu99" } */
-
+/* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 0 } */
void
foo ()
{
const char *pek; int i;
pek=__builtin_va_arg(ap,const char*); /* { dg-error "" } */
}
+/* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 0 } */
void bar()
{
__complex__ int i;
- X j; /* { dg-error "undeclared.*appears.*expected" } */
-
+ X j; /* { dg-error "undeclared|expected" } */
+ /* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 9 } */
if (i = foo(j)) /* { dg-error "undeclared" } */
;
}
void
f ()
{
- char x[g (h)]; /* { dg-error "undeclared|for each function" } */
+ char x[g (h)]; /* { dg-error "undeclared" } */
+/* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 7 } */
}
void
foo(void)
{
- bar /* { dg-error "undeclared|for each function" } */
-
+ bar /* { dg-error "undeclared" } */
+ /* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 9 } */
;
}
{
/* Private variables simply don't exist in the subclass. */
private = 12;/* { dg-error "undeclared" } */
- /* { dg-error "function it appears in" "" { target *-*-* } { 37 } } */
+ /* { dg-message "function it appears in" "" { target *-*-* } { 37 } } */
protected = 12; /* Ok */
public = 12; /* Ok */