===================================================================
@@ -1,7 +1,6 @@
/* PR c++/34607 */
/* { dg-do compile } */
/* { dg-options "-fopenmp -std=gnu99" } */
-/* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 0 } */
void
foo ()
{
@@ -9,10 +8,10 @@ foo ()
for (int i =; i < 2; ++i) /* { dg-error "expected expression before" } */
;
#pragma omp for
- for (T i = 54; i < 56; i++) /* { dg-error "expected iteration declaration" } */
+ for (T i = 54; i < 56; i++) /* { dg-error "unknown type name" } */
;
- T j; /* { dg-error "undeclared|for each function|expected" } */
+ T j; /* { dg-error "unknown type name" } */
#pragma omp for
- for (j = 1; j < 3; j++) /* { dg-error "undeclared" } */
+ for (j = 1; j < 3; j++)
;
}
===================================================================
@@ -6,8 +6,7 @@ int foo(int i);
void bar()
{
__complex__ int i;
- X j; /* { dg-error "undeclared|expected" } */
- /* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 9 } */
- if (i = foo(j)) /* { dg-error "undeclared" } */
+ X j; /* { dg-error "unknown" } */
+ if (i = foo(j))
;
}
===================================================================
@@ -20,13 +20,13 @@ int resync_parser_2;
void g1 ()
{
-HASH define X 1 /* { dg-error "stray|undeclared|parse|syntax|expected|for each" "# from macro" } */
+HASH define X 1 /* { dg-error "stray|unknown|expected" "# from macro" } */
int resync_parser_3;
}
void g2 ()
{
-HASHDEFINE Y 1 /* { dg-error "stray|undeclared|parse|syntax|expected|for each" "#define from macro" } */
+HASHDEFINE Y 1 /* { dg-error "stray|unknown|expected" "#define from macro" } */
int resync_parser_4;
}
===================================================================
@@ -22,13 +22,13 @@ int resync_parser_2;
void g1 ()
{
-HASH define X 1 /* { dg-error "stray|undeclared|parse|syntax|expected|for each" "# from macro" } */
+HASH define X 1 /* { dg-error "stray|unknown|expected" "# from macro" } */
int resync_parser_3;
}
void g2 ()
{
-HASHDEFINE Y 1 /* { dg-error "stray|undeclared|parse|syntax|expected|for each" "#define from macro" } */
+HASHDEFINE Y 1 /* { dg-error "stray|unknown|expected" "#define from macro" } */
int resync_parser_4;
}
===================================================================
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-std=c99" } */
+/* { dg-options "-std=c99 -Wno-overflow" } */
/* N1150 6: Constants.
C99 6.4.4.2: Floating constants. */
===================================================================
@@ -1,3 +1,4 @@
+/* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 0 } */
typedef BYTE unsigned char; /* { dg-error "expected" } */
typedef int item_n;
typedef int perm_set;
@@ -5,7 +6,7 @@ struct PENT { caddr_t v_addr; };/* { dg-
typedef struct PENT prec;
typedef struct PENT *prec_t;
prec_t mem_hash;
-BYTE *mem_base; /* { dg-error "expected" } */
+BYTE *mem_base; /* { dg-error "unknown type name" } */
struct PTE {
BYTE *p_page; /* { dg-error "expected" } */
perm_set p_perms;
@@ -24,9 +25,9 @@ int pcount=0;
void
mmu_walk_find(va)
-caddr_t va; /* { dg-error "expected" } */
+caddr_t va; /* { dg-error "unknown type name" } */
{
- BYTE *page_addr; /* { dg-error "undeclared|for each function" } */
+ BYTE *page_addr; /* { dg-error "unknown type name" } */
if (mmu_base[Level1(va)]->valid==0x0) { /* { dg-error "undeclared" } */
l1_base = mmu_base[Level1(va)]->(u.p_tablep) = p_alloc(); /* { dg-error "expected|undeclared" } */
mmu_base[Level1(va)]->valid = 0x3;
@@ -52,7 +53,7 @@ caddr_t va; /* { dg-error "expected" }
void *
a_translate(va_op, v_addr)
int va_op;
-caddr_t v_addr; /* { dg-error "expected" } */
+caddr_t v_addr; /* { dg-error "unknown type name" } */
{
register prec_t bucket;
register caddr_t p_addr; /* { dg-error "expected|undeclared" } */