diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/c99-array-lval-8.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/c99-array-lval-8.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.dg/c99-array-lval-8.c b/gcc/testsuite/gcc.dg/c99-array-lval-8.c index b5048b66a77..c4e202ef301 100644 --- a/gcc/testsuite/gcc.dg/c99-array-lval-8.c +++ b/gcc/testsuite/gcc.dg/c99-array-lval-8.c @@ -12,15 +12,15 @@ f (void) const struct { int a[1]; } s; - int *p1 = s.a; /* { dg-error "qualifiers" } */ + int *p1 = s.a; /* { dg-error "qualifier" } */ int *p2 = (a ? s : s).a; /* In this case, the qualifier is properly on the array element type not on the rvalue structure and so is not discarded. */ struct { const int a[1]; } t; - int *p3 = t.a; /* { dg-error "qualifiers" } */ - int *p4 = (a ? t : t).a; /* { dg-error "qualifiers" } */ + int *p3 = t.a; /* { dg-error "qualifier" } */ + int *p4 = (a ? t : t).a; /* { dg-error "qualifier" } */ /* The issue could also lead to code being wrongly accepted. */ const struct { int a[1][1]; |