PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / asan / pr82517.c
blobc7743ecb8b1978b23d537bb0e268cbcc8fbe93d4
1 /* PR sanitizer/82517. */
3 static int *pp;
5 void
6 baz ()
8 return;
11 void
12 bar (int *p)
14 *p = 1;
17 void
18 foo (int a)
20 if (a == 2)
22 lab:
23 baz ();
24 return;
26 if (a > 1)
28 int x __attribute__ ((aligned (256)));
29 pp = &x;
30 bar (&x);
31 if (!x)
32 goto lab;
36 int
37 main (int argc, char **argv)
39 foo (4);
40 foo (3);
42 return 0;