1 /* PR target/49307 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O -fpic -fstack-protector" } */ 4 /* { dg-require-effective-target fpic } */ 5 /* { dg-require-effective-target fstack_protector } */ 6 7 extern void bar (char **pp, void *vp); 8 extern void free (void *p); 9 10 int foo(void)11foo (void) 12 { 13 char *p; 14 char fext[128]; 15 16 p = fext; 17 bar (&p, (void *)0); 18 if (p) 19 free (p); 20 return 0; 21 } 22