* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / asan / use-after-scope-11.c
blobb3c4c9ec75835b450f2df483787853c35e664ded
1 // { dg-do run }
3 #include <string.h>
5 char cc;
6 char ptr[] = "sparta2";
8 void get(char **x)
10 *x = ptr;
13 int main()
15 char *here = &cc;
17 for (;;)
19 next_line:
20 if (here == NULL)
21 __builtin_abort();
22 get (&here);
23 if (strcmp (here, "sparta") == 0)
24 goto next_line;
25 else if (strcmp (here, "sparta2") == 0)
26 break;
29 return 0;