re PR c/24577 (diagnostic informative note labelled "error")

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.

From-SVN: r157111
parent c6b9174f
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> 2010-02-27 Tobias Burnus <burnus@net-b.de>
PR fortran/43185 PR fortran/43185
......
...@@ -5,5 +5,5 @@ x() ...@@ -5,5 +5,5 @@ x()
{ {
foo (i); foo (i);
/* { dg-error "undeclared" "undeclared-variable message" { target *-*-* } { 6 } } */ /* { 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 } } */
} }
...@@ -8,6 +8,6 @@ main () ...@@ -8,6 +8,6 @@ main ()
{ {
error; error;
/* { dg-error "undeclared" "undeclared-variable message" { target *-*-* } { 9 } } */ /* { 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 } } */
} }
} }
...@@ -12,5 +12,5 @@ int main () { ...@@ -12,5 +12,5 @@ int main () {
{} {}
error; error;
/* { dg-error "undeclared" "undeclared-variable message" { target *-*-* } { 13 } } */ /* { 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 } } */
} }
...@@ -35,4 +35,5 @@ void f1(void) ...@@ -35,4 +35,5 @@ void f1(void)
; ;
/* Check that we didn't get stuck on the pragma eol marker. */ /* Check that we didn't get stuck on the pragma eol marker. */
undef; /* { dg-error "" } */ undef; /* { dg-error "" } */
/* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 37 } */
} }
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 0 } */
void f1(void) void f1(void)
{ {
#pragma omp flush a /* { dg-error "expected" } */ #pragma omp flush a /* { dg-error "expected" } */
......
/* PR c++/34607 */ /* PR c++/34607 */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-fopenmp -std=gnu99" } */ /* { dg-options "-fopenmp -std=gnu99" } */
/* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 0 } */
void void
foo () foo ()
{ {
......
...@@ -5,3 +5,4 @@ void func() ...@@ -5,3 +5,4 @@ void func()
const char *pek; int i; const char *pek; int i;
pek=__builtin_va_arg(ap,const char*); /* { dg-error "" } */ pek=__builtin_va_arg(ap,const char*); /* { dg-error "" } */
} }
/* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 0 } */
...@@ -6,8 +6,8 @@ int foo(int i); ...@@ -6,8 +6,8 @@ int foo(int i);
void bar() void bar()
{ {
__complex__ int i; __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" } */ if (i = foo(j)) /* { dg-error "undeclared" } */
; ;
} }
...@@ -4,5 +4,6 @@ ...@@ -4,5 +4,6 @@
void void
f () 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 } */
} }
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
void void
foo(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 } */
; ;
} }
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
{ {
/* Private variables simply don't exist in the subclass. */ /* Private variables simply don't exist in the subclass. */
private = 12;/* { dg-error "undeclared" } */ private = 12;/* { dg-error "undeclared" } */
/* { dg-error "function it appears in" "" { target *-*-* } { 37 } } */ /* { dg-message "function it appears in" "" { target *-*-* } { 37 } } */
protected = 12; /* Ok */ protected = 12; /* Ok */
public = 12; /* Ok */ public = 12; /* Ok */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment