blob: 518f9bb26fabc0bb70841d1a67ee2436c64d7b49 [file] [log] [blame]
// PR middle-end/99109
// { dg-do compile }
// { dg-options "-O2 -Warray-bounds" }
typedef int A __attribute__((aligned (64)));
void foo (int *);
void
bar (void)
{
A b; // { dg-message "at offset -\\d into object 'b' of size 4" "note" }
int *p = &b;
int *x = (p - 1); // { dg-warning "outside array bounds" }
foo (x);
}