Debian Codegraph @

gcc/testsuite/g++.dg/asan/pr104449.C

raw
1 // PR sanitizer/104449
2 // { dg-do compile }
3 // { dg-options "-fexceptions -fsanitize=address -fstack-check=generic" }
4
5 void bar (int *);
6 struct A { A (); ~A (); };
7
8 void
9 foo (int n)
10 {
11 A b;
12 {
13 int a[n];
14 bar (a);
15 }
16 }