summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/qual-component-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/qual-component-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/qual-component-1.c136
1 files changed, 68 insertions, 68 deletions
diff --git a/gcc/testsuite/gcc.dg/qual-component-1.c b/gcc/testsuite/gcc.dg/qual-component-1.c
index 58054348173..dbf61158f6d 100644
--- a/gcc/testsuite/gcc.dg/qual-component-1.c
+++ b/gcc/testsuite/gcc.dg/qual-component-1.c
@@ -42,12 +42,12 @@ f (void)
v1.c[0][0] = 0;
*v1.c[0] = 0;
**v1.c = 0;
- v1.d = 0; /* { dg-error "error: assignment of read-only" } */
- v1.e[0] = 0; /* { dg-error "error: assignment of read-only" } */
- *v1.e = 0; /* { dg-error "error: assignment of read-only" } */
- v1.f[0][0] = 0; /* { dg-error "error: assignment of read-only" } */
- *v1.f[0] = 0; /* { dg-error "error: assignment of read-only" } */
- **v1.f = 0; /* { dg-error "error: assignment of read-only" } */
+ v1.d = 0; /* { dg-error "assignment of read-only" } */
+ v1.e[0] = 0; /* { dg-error "assignment of read-only" } */
+ *v1.e = 0; /* { dg-error "assignment of read-only" } */
+ v1.f[0][0] = 0; /* { dg-error "assignment of read-only" } */
+ *v1.f[0] = 0; /* { dg-error "assignment of read-only" } */
+ **v1.f = 0; /* { dg-error "assignment of read-only" } */
v2->a = 0;
v2->b[0] = 0;
@@ -55,51 +55,51 @@ f (void)
v2->c[0][0] = 0;
*v2->c[0] = 0;
**v2->c = 0;
- v2->d = 0; /* { dg-error "error: assignment of read-only" } */
- v2->e[0] = 0; /* { dg-error "error: assignment of read-only" } */
- *v2->e = 0; /* { dg-error "error: assignment of read-only" } */
- v2->f[0][0] = 0; /* { dg-error "error: assignment of read-only" } */
- *v2->f[0] = 0; /* { dg-error "error: assignment of read-only" } */
- **v2->f = 0; /* { dg-error "error: assignment of read-only" } */
+ v2->d = 0; /* { dg-error "assignment of read-only" } */
+ v2->e[0] = 0; /* { dg-error "assignment of read-only" } */
+ *v2->e = 0; /* { dg-error "assignment of read-only" } */
+ v2->f[0][0] = 0; /* { dg-error "assignment of read-only" } */
+ *v2->f[0] = 0; /* { dg-error "assignment of read-only" } */
+ **v2->f = 0; /* { dg-error "assignment of read-only" } */
- v3->a = 0; /* { dg-error "error: assignment of read-only" } */
- v3->b[0] = 0; /* { dg-error "error: assignment of read-only" } */
- *v3->b = 0; /* { dg-error "error: assignment of read-only" } */
- v3->c[0][0] = 0; /* { dg-error "error: assignment of read-only" } */
- *v3->c[0] = 0; /* { dg-error "error: assignment of read-only" } */
- **v3->c = 0; /* { dg-error "error: assignment of read-only" } */
- v3->d = 0; /* { dg-error "error: assignment of read-only" } */
- v3->e[0] = 0; /* { dg-error "error: assignment of read-only" } */
- *v3->e = 0; /* { dg-error "error: assignment of read-only" } */
- v3->f[0][0] = 0; /* { dg-error "error: assignment of read-only" } */
- *v3->f[0] = 0; /* { dg-error "error: assignment of read-only" } */
- **v3->f = 0; /* { dg-error "error: assignment of read-only" } */
+ v3->a = 0; /* { dg-error "assignment of read-only" } */
+ v3->b[0] = 0; /* { dg-error "assignment of read-only" } */
+ *v3->b = 0; /* { dg-error "assignment of read-only" } */
+ v3->c[0][0] = 0; /* { dg-error "assignment of read-only" } */
+ *v3->c[0] = 0; /* { dg-error "assignment of read-only" } */
+ **v3->c = 0; /* { dg-error "assignment of read-only" } */
+ v3->d = 0; /* { dg-error "assignment of read-only" } */
+ v3->e[0] = 0; /* { dg-error "assignment of read-only" } */
+ *v3->e = 0; /* { dg-error "assignment of read-only" } */
+ v3->f[0][0] = 0; /* { dg-error "assignment of read-only" } */
+ *v3->f[0] = 0; /* { dg-error "assignment of read-only" } */
+ **v3->f = 0; /* { dg-error "assignment of read-only" } */
- v4.a = 0; /* { dg-error "error: assignment of read-only" } */
- v4.b[0] = 0; /* { dg-error "error: assignment of read-only" } */
- *v4.b = 0; /* { dg-error "error: assignment of read-only" } */
- v4.c[0][0] = 0; /* { dg-error "error: assignment of read-only" } */
- *v4.c[0] = 0; /* { dg-error "error: assignment of read-only" } */
- **v4.c = 0; /* { dg-error "error: assignment of read-only" } */
- v4.d = 0; /* { dg-error "error: assignment of read-only" } */
- v4.e[0] = 0; /* { dg-error "error: assignment of read-only" } */
- *v4.e = 0; /* { dg-error "error: assignment of read-only" } */
- v4.f[0][0] = 0; /* { dg-error "error: assignment of read-only" } */
- *v4.f[0] = 0; /* { dg-error "error: assignment of read-only" } */
- **v4.f = 0; /* { dg-error "error: assignment of read-only" } */
+ v4.a = 0; /* { dg-error "assignment of read-only" } */
+ v4.b[0] = 0; /* { dg-error "assignment of read-only" } */
+ *v4.b = 0; /* { dg-error "assignment of read-only" } */
+ v4.c[0][0] = 0; /* { dg-error "assignment of read-only" } */
+ *v4.c[0] = 0; /* { dg-error "assignment of read-only" } */
+ **v4.c = 0; /* { dg-error "assignment of read-only" } */
+ v4.d = 0; /* { dg-error "assignment of read-only" } */
+ v4.e[0] = 0; /* { dg-error "assignment of read-only" } */
+ *v4.e = 0; /* { dg-error "assignment of read-only" } */
+ v4.f[0][0] = 0; /* { dg-error "assignment of read-only" } */
+ *v4.f[0] = 0; /* { dg-error "assignment of read-only" } */
+ **v4.f = 0; /* { dg-error "assignment of read-only" } */
- v5.x.a = 0; /* { dg-error "error: assignment of read-only" } */
- v5.x.b[0] = 0; /* { dg-error "error: assignment of read-only" } */
- *v5.x.b = 0; /* { dg-error "error: assignment of read-only" } */
- v5.x.c[0][0] = 0; /* { dg-error "error: assignment of read-only" } */
- *v5.x.c[0] = 0; /* { dg-error "error: assignment of read-only" } */
- **v5.x.c = 0; /* { dg-error "error: assignment of read-only" } */
- v5.x.d = 0; /* { dg-error "error: assignment of read-only" } */
- v5.x.e[0] = 0; /* { dg-error "error: assignment of read-only" } */
- *v5.x.e = 0; /* { dg-error "error: assignment of read-only" } */
- v5.x.f[0][0] = 0; /* { dg-error "error: assignment of read-only" } */
- *v5.x.f[0] = 0; /* { dg-error "error: assignment of read-only" } */
- **v5.x.f = 0; /* { dg-error "error: assignment of read-only" } */
+ v5.x.a = 0; /* { dg-error "assignment of read-only" } */
+ v5.x.b[0] = 0; /* { dg-error "assignment of read-only" } */
+ *v5.x.b = 0; /* { dg-error "assignment of read-only" } */
+ v5.x.c[0][0] = 0; /* { dg-error "assignment of read-only" } */
+ *v5.x.c[0] = 0; /* { dg-error "assignment of read-only" } */
+ **v5.x.c = 0; /* { dg-error "assignment of read-only" } */
+ v5.x.d = 0; /* { dg-error "assignment of read-only" } */
+ v5.x.e[0] = 0; /* { dg-error "assignment of read-only" } */
+ *v5.x.e = 0; /* { dg-error "assignment of read-only" } */
+ v5.x.f[0][0] = 0; /* { dg-error "assignment of read-only" } */
+ *v5.x.f[0] = 0; /* { dg-error "assignment of read-only" } */
+ **v5.x.f = 0; /* { dg-error "assignment of read-only" } */
}
void
@@ -110,24 +110,24 @@ g (void)
int (*b)[1] = &v1.b;
int (*c)[2][3] = &v1.c;
int (*cc)[3] = v1.c;
- const int (*ff)[3] = v1.c; /* { dg-warning "warning: initialization from incompatible pointer type" } */
+ const int (*ff)[3] = v1.c; /* { dg-warning "initialization from incompatible pointer type" } */
a = &v1.a;
b = &v1.b;
c = &v1.c;
cc = v1.c;
- ff = v1.c; /* { dg-warning "warning: assignment from incompatible pointer type" } */
+ ff = v1.c; /* { dg-warning "assignment from incompatible pointer type" } */
}
{
const int *d = &v1.d;
const int (*e)[1] = &v1.e;
const int (*f)[2][3] = &v1.f;
const int (*ff)[3] = v1.f;
- int (*cc)[3] = v1.f; /* { dg-warning "warning: initialization from incompatible pointer type" } */
+ int (*cc)[3] = v1.f; /* { dg-warning "initialization from incompatible pointer type" } */
d = &v1.d;
e = &v1.e;
f = &v1.f;
ff = v1.f;
- cc = v1.f; /* { dg-warning "warning: assignment from incompatible pointer type" } */
+ cc = v1.f; /* { dg-warning "assignment from incompatible pointer type" } */
}
{
@@ -135,24 +135,24 @@ g (void)
int (*b)[1] = &v2->b;
int (*c)[2][3] = &v2->c;
int (*cc)[3] = v2->c;
- const int (*ff)[3] = v2->c; /* { dg-warning "warning: initialization from incompatible pointer type" } */
+ const int (*ff)[3] = v2->c; /* { dg-warning "initialization from incompatible pointer type" } */
a = &v2->a;
b = &v2->b;
c = &v2->c;
cc = v2->c;
- ff = v2->c; /* { dg-warning "warning: assignment from incompatible pointer type" } */
+ ff = v2->c; /* { dg-warning "assignment from incompatible pointer type" } */
}
{
const int *d = &v2->d;
const int (*e)[1] = &v2->e;
const int (*f)[2][3] = &v2->f;
const int (*ff)[3] = v2->f;
- int (*cc)[3] = v2->f; /* { dg-warning "warning: initialization from incompatible pointer type" } */
+ int (*cc)[3] = v2->f; /* { dg-warning "initialization from incompatible pointer type" } */
d = &v2->d;
e = &v2->e;
f = &v2->f;
ff = v2->f;
- cc = v2->f; /* { dg-warning "warning: assignment from incompatible pointer type" } */
+ cc = v2->f; /* { dg-warning "assignment from incompatible pointer type" } */
}
{
@@ -160,24 +160,24 @@ g (void)
const int (*e)[1] = &v3->b;
const int (*f)[2][3] = &v3->c;
const int (*ff)[3] = v3->c;
- int (*cc)[3] = v3->c; /* { dg-warning "warning: initialization from incompatible pointer type" } */
+ int (*cc)[3] = v3->c; /* { dg-warning "initialization from incompatible pointer type" } */
d = &v3->a;
e = &v3->b;
f = &v3->c;
ff = v3->c;
- cc = v3->c; /* { dg-warning "warning: assignment from incompatible pointer type" } */
+ cc = v3->c; /* { dg-warning "assignment from incompatible pointer type" } */
}
{
const int *d = &v3->d;
const int (*e)[1] = &v3->e;
const int (*f)[2][3] = &v3->f;
const int (*ff)[3] = v3->f;
- int (*cc)[3] = v3->f; /* { dg-warning "warning: initialization from incompatible pointer type" } */
+ int (*cc)[3] = v3->f; /* { dg-warning "initialization from incompatible pointer type" } */
d = &v3->d;
e = &v3->e;
f = &v3->f;
ff = v3->f;
- cc = v3->f; /* { dg-warning "warning: assignment from incompatible pointer type" } */
+ cc = v3->f; /* { dg-warning "assignment from incompatible pointer type" } */
}
{
@@ -185,24 +185,24 @@ g (void)
const int (*e)[1] = &v4.b;
const int (*f)[2][3] = &v4.c;
const int (*ff)[3] = v4.c;
- int (*cc)[3] = v4.c; /* { dg-warning "warning: initialization from incompatible pointer type" } */
+ int (*cc)[3] = v4.c; /* { dg-warning "initialization from incompatible pointer type" } */
d = &v4.a;
e = &v4.b;
f = &v4.c;
ff = v4.c;
- cc = v4.c; /* { dg-warning "warning: assignment from incompatible pointer type" } */
+ cc = v4.c; /* { dg-warning "assignment from incompatible pointer type" } */
}
{
const int *d = &v4.d;
const int (*e)[1] = &v4.e;
const int (*f)[2][3] = &v4.f;
const int (*ff)[3] = v4.f;
- int (*cc)[3] = v4.f; /* { dg-warning "warning: initialization from incompatible pointer type" } */
+ int (*cc)[3] = v4.f; /* { dg-warning "initialization from incompatible pointer type" } */
d = &v4.d;
e = &v4.e;
f = &v4.f;
ff = v4.f;
- cc = v4.f; /* { dg-warning "warning: assignment from incompatible pointer type" } */
+ cc = v4.f; /* { dg-warning "assignment from incompatible pointer type" } */
}
{
@@ -210,23 +210,23 @@ g (void)
const int (*e)[1] = &v5.x.b;
const int (*f)[2][3] = &v5.x.c;
const int (*ff)[3] = v5.x.c;
- int (*cc)[3] = v5.x.c; /* { dg-warning "warning: initialization from incompatible pointer type" } */
+ int (*cc)[3] = v5.x.c; /* { dg-warning "initialization from incompatible pointer type" } */
d = &v5.x.a;
e = &v5.x.b;
f = &v5.x.c;
ff = v5.x.c;
- cc = v5.x.c; /* { dg-warning "warning: assignment from incompatible pointer type" } */
+ cc = v5.x.c; /* { dg-warning "assignment from incompatible pointer type" } */
}
{
const int *d = &v5.x.d;
const int (*e)[1] = &v5.x.e;
const int (*f)[2][3] = &v5.x.f;
const int (*ff)[3] = v5.x.f;
- int (*cc)[3] = v5.x.f; /* { dg-warning "warning: initialization from incompatible pointer type" } */
+ int (*cc)[3] = v5.x.f; /* { dg-warning "initialization from incompatible pointer type" } */
d = &v5.x.d;
e = &v5.x.e;
f = &v5.x.f;
ff = v5.x.f;
- cc = v5.x.f; /* { dg-warning "warning: assignment from incompatible pointer type" } */
+ cc = v5.x.f; /* { dg-warning "assignment from incompatible pointer type" } */
}
}