* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / asan / pr64170.c
blobc4edcaa39d16f27bf78ad8513afe0e66ac38e9b4
1 /* PR sanitizer/64170 */
2 /* { dg-do compile } */
3 /* { dg-options "-fsanitize=address,null" } */
5 int a, *b, c;
6 void bar (int);
8 void
9 foo (void)
11 char *d = (char *) b;
12 if (d[0] && d[1])
13 return;
14 if (c)
15 a = *(int *) d;
16 bar (*(int *) d);