diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pointer-arith-4.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pointer-arith-4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/pointer-arith-4.c b/gcc/testsuite/gcc.dg/pointer-arith-4.c index daa5e0f..c6382b1 100644 --- a/gcc/testsuite/gcc.dg/pointer-arith-4.c +++ b/gcc/testsuite/gcc.dg/pointer-arith-4.c @@ -31,9 +31,9 @@ g (void) f -= 0; /* { dg-error "pointer to a function used in arithmetic" } */ f -= 1; /* { dg-error "pointer to a function used in arithmetic" } */ p[0]; /* { dg-warning "dereferencing 'void \\*' pointer" } */ - /* { dg-error "pointer of type 'void \\*' used in arithmetic" "array 1" { target *-*-* } 33 } */ + /* { dg-error "pointer of type 'void \\*' used in arithmetic" "array 1" { target *-*-* } .-1 } */ 0[p]; /* { dg-warning "dereferencing 'void \\*' pointer" } */ - /* { dg-error "pointer of type 'void \\*' used in arithmetic" "array 1" { target *-*-* } 35 } */ + /* { dg-error "pointer of type 'void \\*' used in arithmetic" "array 1" { target *-*-* } .-1 } */ f[0]; /* { dg-error "subscripted value is pointer to function" } */ 0[f]; /* { dg-error "subscripted value is pointer to function" } */ p - p; /* { dg-error "pointer of type 'void \\*' used in subtraction" } */ |