* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / asan / use-after-scope-switch-2.c
blob5a5ea375e183ea671c477e269117f9b34abfa32b
1 // { dg-do run }
2 // { dg-additional-options "-fdump-tree-gimple" }
4 int
5 main (int argc, char **argv)
7 int *ptr = 0;
8 int *ptr2 = 0;
9 int *ptr3 = 0;
11 for (unsigned i = 0; i < 2; i++)
13 switch (argc)
15 case 1111:;
16 int a, b, c;
17 default:
18 ptr = &a;
19 ptr2 = &b;
20 ptr3 = &c;
21 break;
25 return 0;
28 /* { dg-final { scan-tree-dump-times "ASAN_MARK \\(UNPOISON, &a, \[0-9\]\\);" 2 "gimple" } } */
29 /* { dg-final { scan-tree-dump-times "ASAN_MARK \\(UNPOISON, &b, \[0-9\]\\);" 2 "gimple" } } */
30 /* { dg-final { scan-tree-dump-times "ASAN_MARK \\(UNPOISON, &c, \[0-9\]\\);" 2 "gimple" } } */
31 /* { dg-final { scan-tree-dump-times "ASAN_MARK \\(POISON, &a, \[0-9\]\\);" 1 "gimple" } } */
32 /* { dg-final { scan-tree-dump-times "ASAN_MARK \\(POISON, &b, \[0-9\]\\);" 1 "gimple" } } */
33 /* { dg-final { scan-tree-dump-times "ASAN_MARK \\(POISON, &c, \[0-9\]\\);" 1 "gimple" } } */