PR c++/85662
[official-gcc.git] / gcc / testsuite / c-c++-common / asan / aggressive-opts.c
blob294b7fc0635303c4893e6be3a96503043ab1314c
1 /* { dg-options "-fdump-tree-asan" } */
2 /* { dg-do compile } */
3 /* { dg-skip-if "" { *-*-* } { "*" } { "-O3" } } */
5 int ext;
7 int
8 Perl_do_sv_dump()
10 int freq[10];
11 int i;
12 int max = 0;
14 if (max < ext)
15 max = ext;
17 for (i = 0; i <= max; i++)
18 if (freq[i])
19 ext = 0;
21 if (i > 20)
22 return freq[i];
23 else
24 return 0;
27 /* { dg-final { scan-tree-dump-times "ASAN_CHECK" 2 "asan1" } } */