diff options
Diffstat (limited to 'gcc/testsuite/c-c++-common/builtin-offsetof.c')
-rw-r--r-- | gcc/testsuite/c-c++-common/builtin-offsetof.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/c-c++-common/builtin-offsetof.c b/gcc/testsuite/c-c++-common/builtin-offsetof.c index 0ab498a..6d97775 100644 --- a/gcc/testsuite/c-c++-common/builtin-offsetof.c +++ b/gcc/testsuite/c-c++-common/builtin-offsetof.c @@ -21,9 +21,9 @@ f0 () __builtin_offsetof(struct A, p[0]); // { dg-error "non constant address" } __builtin_offsetof(struct B, p[0]); // OK __builtin_offsetof(struct B, p[9]); // OK - __builtin_offsetof(struct B, p[10]); // { dg-warning "greater than size" } + __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" } } - |