* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / asan / use-after-scope-switch-1.c
blobd4d753936bb4899e78d6fbf87d98e8707e49e09d
1 // { dg-do run }
2 // { dg-additional-options "-fdump-tree-gimple" }
4 int
5 main (int argc, char **argv)
7 int *ptr = 0;
9 for (unsigned i = 0; i < 2; i++)
11 switch (argc)
13 int a;
14 default:
15 ptr = &a;
16 *ptr = 12345;
17 break;
21 return 0;
24 /* { dg-final { scan-tree-dump-times "ASAN_MARK \\(UNPOISON, &a, \[0-9\]\\);" 2 "gimple" } } */
25 /* { dg-final { scan-tree-dump-times "ASAN_MARK \\(POISON, &a, \[0-9\]\\);" 1 "gimple" } } */