* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / asan / use-after-scope-4.c
blob77d7052bd19a8873a00472a0427cea071d0505fe
1 // { dg-do run }
3 int
4 __attribute__((no_sanitize_address))
5 main (void)
7 char *ptr;
8 char *ptr2;
10 char my_char[9];
11 ptr = &my_char[0];
12 __builtin_memcpy (&ptr2, &ptr, sizeof (ptr2));
15 *(ptr2+9) = 'c';