| Index: gcc/gcc/testsuite/c-c++-common/builtin-offsetof.c
|
| diff --git a/gcc/gcc/testsuite/c-c++-common/builtin-offsetof.c b/gcc/gcc/testsuite/c-c++-common/builtin-offsetof.c
|
| index 392f3933d9d399df2d81d7dacaffa4eb593ffda6..6d97775467d31675dedb01c40ab5bce03d702ba5 100644
|
| --- a/gcc/gcc/testsuite/c-c++-common/builtin-offsetof.c
|
| +++ b/gcc/gcc/testsuite/c-c++-common/builtin-offsetof.c
|
| @@ -22,6 +22,7 @@ f0 ()
|
| __builtin_offsetof(struct B, p[0]); // OK
|
| __builtin_offsetof(struct B, p[9]); // OK
|
| __builtin_offsetof(struct B, p[10]); // OK
|
| + __builtin_offsetof(struct B, p[11]); // { dg-warning "greater than size" }
|
| __builtin_offsetof(struct B, a.p); // OK
|
| __builtin_offsetof(struct B, p[0]); // OK
|
| __builtin_offsetof(struct B, a.p[0]); // { dg-error "non constant address" }
|
|
|