aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/array-5.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/array-5.c')
-rw-r--r--gcc/testsuite/gcc.dg/array-5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/array-5.c b/gcc/testsuite/gcc.dg/array-5.c
index 1717de4..a4053da 100644
--- a/gcc/testsuite/gcc.dg/array-5.c
+++ b/gcc/testsuite/gcc.dg/array-5.c
@@ -24,7 +24,7 @@ void func(int n, int m)
/* Invalid: not compatible because 4 != 6. */
int a[n][6][m];
int (*p)[4][n+1];
- p = a; /* { dg-error "incompatible" } */
+ p = a; /* { dg-warning "incompatible" } */
}
{
/* Compatible, but defined behavior only if n == 6 and m == n+1. */