mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-21 14:41:07 +08:00
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
This commit is contained in:
parent
c6b9174f2e
commit
8416709431
@ -1,3 +1,19 @@
|
||||
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
|
||||
|
@ -5,5 +5,5 @@ x()
|
||||
{
|
||||
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 } } */
|
||||
}
|
||||
|
@ -8,6 +8,6 @@ main ()
|
||||
{
|
||||
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 } } */
|
||||
}
|
||||
}
|
||||
|
@ -12,5 +12,5 @@ int main () {
|
||||
{}
|
||||
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 } } */
|
||||
}
|
||||
|
@ -35,4 +35,5 @@ void f1(void)
|
||||
;
|
||||
/* 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 } */
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* { dg-do compile } */
|
||||
|
||||
/* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 0 } */
|
||||
void f1(void)
|
||||
{
|
||||
#pragma omp flush a /* { dg-error "expected" } */
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* PR c++/34607 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-fopenmp -std=gnu99" } */
|
||||
|
||||
/* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 0 } */
|
||||
void
|
||||
foo ()
|
||||
{
|
||||
|
@ -5,3 +5,4 @@ void func()
|
||||
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 } */
|
||||
|
@ -6,8 +6,8 @@ int foo(int i);
|
||||
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" } */
|
||||
;
|
||||
}
|
||||
|
@ -4,5 +4,6 @@
|
||||
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 } */
|
||||
}
|
||||
|
@ -6,8 +6,8 @@
|
||||
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 @@
|
||||
{
|
||||
/* 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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user