* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / asan / use-after-scope-goto-2.c
blob7c396141d9bc7ff119f915a0223fbe563fb78a3d
1 // { dg-do run }
2 // { dg-additional-options "-fdump-tree-asan0" }
3 /* { dg-skip-if "" { *-*-* } { "*" } { "-O0" } } */
5 int main(int argc, char **argv)
7 int a = 123;
9 if (argc == 0)
11 int *ptr;
12 /* The label is not used in &label or goto label. Thus '&a' should be
13 marked just once. */
14 label:
16 ptr = &a;
17 *ptr = 1;
18 return 0;
22 return 0;
25 /* { dg-final { scan-tree-dump-times "ASAN_MARK \\(UNPOISON, &a, 4\\);" 1 "asan0" } } */