summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pointer-arith-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/pointer-arith-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/pointer-arith-1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.dg/pointer-arith-1.c b/gcc/testsuite/gcc.dg/pointer-arith-1.c
index 3bf78873e8f..8bf6e285d94 100644
--- a/gcc/testsuite/gcc.dg/pointer-arith-1.c
+++ b/gcc/testsuite/gcc.dg/pointer-arith-1.c
@@ -30,10 +30,10 @@ g (void)
f += 1;
f -= 0;
f -= 1;
- p[0]; /* { dg-warning "warning: dereferencing 'void \\*' pointer" } */
- 0[p]; /* { dg-warning "warning: dereferencing 'void \\*' pointer" } */
- f[0]; /* { dg-error "error: subscripted value is pointer to function" } */
- 0[f]; /* { dg-error "error: subscripted value is pointer to function" } */
+ p[0]; /* { dg-warning "dereferencing 'void \\*' pointer" } */
+ 0[p]; /* { dg-warning "dereferencing 'void \\*' pointer" } */
+ f[0]; /* { dg-error "subscripted value is pointer to function" } */
+ 0[f]; /* { dg-error "subscripted value is pointer to function" } */
p - p;
f - f;
}