(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
warn/
Warray-bounds-17.C
// 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);
}