(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
asan/
pr104449.C
// PR sanitizer/104449
// { dg-do compile }
// { dg-options "-fexceptions -fsanitize=address -fstack-check=generic" }

void bar (int *);
struct A { A (); ~A (); };

void
foo (int n)
{
  A b;
  {
    int a[n];
    bar (a);
  }
}